Registration response and deferred email

Registration response and deferred email A sequence diagram generated by Archify. submit form POST /registrations insert user commit succeeds publish UserRegistered event accepted 201 Created show success deliver event send welcome email message accepted Success waits for durable registration Welcome email continues after the response User · submits registration · Sequence participant User submits registration Web app · registration screen · Sequence participant Web app registration screen Registration API · owns the request · Sequence participant Registration API owns the request User database · source of truth · Sequence participant User database source of truth Message broker · durable event · Sequence participant Message broker durable event Email worker · independent consumer · Sequence participant Email worker independent consumer Email provider · delivers the message · Sequence participant Email provider delivers the message Legend main request return async trace message