I was wondering which of my two methods is more appropriate, or is there event another one?
(1) Direct
Direct communication between GATEWAY and μSERVICE A
UIsendsHTTPrequest toGATEWAYGATEWAYsendsHTTPrequest toμSERVICE AμSERVICE Areturns eitherSUCCESSorERROR- Event is stored in
EVENT STOREand published toQUEUE PROJECTION DATABASEis updated- Other
μSERVICESmight consume event
(2) Events
Event-based communication via a message queue
UIsendsHTTPrequest toGATEWAYGATEWAYpublished event toQUEUEμSERVICE Aconsumes event- Event is stored in
EVENT STOREand published toQUEUE PROJECTION DATABASEis updated- Other
μSERVICESmight consume event GATEWAYconsumes event and sends response (SUCCESSorERROR) toUI
I am really sorry if I misunderstood some concept, I am relatively new to this style of architecture.
Thanks in advance for every help! :)