Use messages and queues

A serverless application works efficiently when the application is asynchronous, but with web applications, this is not that simple, because web applications require lots of request–response interactions and lots of querying. Going back to functions not calling other functions, it’s important to point out that this is how you chain functions together. Queues act as circuit breakers in the chaining scenario, so if the function fails, we can easily drill down to the failed queue and investigate the failure, which could be the result of pushing messages that failed to a dead-letter queue. 

With applications that have serverless as the backend, it would be ideal to use CQRS, which separates out the conceptual model of ...

Get DevOps for Serverless Applications now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.