This is the continuation of Adding Data from UI to different microservices. That question was about splitting BE into microservices. Now, I'm looking for a way to decompose the UI into microfrontends as well.
Imagine you have a user registration form, where you fill in the form: First Name, Last Name, Age, Address, Prefered way of communication: Sms, Email (radiobuttons). You have 2 microservices:
UserManagement service Communication service When user is registered we should create 2 aggregates in 2 services: User in UserManagementContext and UserCommunicationSettings in Communication. So I feel like I should have 2 different UI components from 2 microservices, but how to place them in 1 form on UI? What happens when user clicks Submit button, how these components will send data to their services?