Wednesday 16 October 2019

Web APIs - A timeline of web services (Part IV)

Welcome to the world of lambdas and serverless functions

Microservices offer a highly-focused (single responsibility), low latency, auto-scaling web services. We could orchestrate these services as per our need. Developers look at microservices in not only a synchronous way but also in an asynchronous way.

One could tie an event-driven pattern using CQRS back-ending the microservices. A neatly designed CQRS can gracefully decouple read data to the write data. (That's for another post though)

Be it vert.x, sinatra or any other platform, we define services with the granularity we need.

Recently, for building a chat bot, I started exploring AWS lambda functions. Chat bot APIs need a very structured handling of states and transitions. So such APIs need to use session and context linking/sequencing to provide data interactively. I have been using nodejs serverless for building these APIs. Here's a quick guide to how serverless environment can be configured to make our services discoverable, secure and scalable.

I have to tell you that the world of APIs ever since I started my career always interested me. There is a choice of stack and a configuration that fits each of the clients needs in different ways.  An enterprise grade banking API needs are very different from that of a smart home automation IoT API.

No comments:

Post a Comment