Slide 27
Slide 27 text
2. Assume asynchronous interactions. Deal with it.
● How?
○ Polling, promises, events, notifications, queued jobs…
○ Ideally I should be able to instantiate the service in synchronous or asynchronous
mode for execution.
○ If the service is slow, I should wrap the call to a service in a background task.
○ In both cases (asynchronous service response or background task) my API should
state explicitly that this method is asynchronous.
Low coupling