This year, one of my projects will be to migrate a set of (legacy) systems to auth0. Currently these systems sync user data between them (without outboxing, so it is buggy). Now I want to centralize these users in Auth0, but as a lot of querys are dependent on the exising user tables in these systems, I want to sync a readonly copy to these systems (a projection sort of speak). Now in order to do that, I was thinking of making a chain of cascading wolverine handlers, that do this:
- endpoint for creating user, store logging event
- create user in auth0, store logging event
- create user in legacy system 1*, store logging event
- create user in system 2*, store logging event
*Syncing users might be using queuing in later stages, but at first I will go for raw SQL inserts there.
The management screens will hit 'create', and list users from auth0. But how would I now that at least creating the user in auth0 is finished, such that my list view can get updated. I was thinking websockets or so (as step 2a), but maybe there are easier ways to do it? ๐ค