ABSTRACT

This chapter describes three major architectural elements related to communication, namely designing Application Programming Interface (API) for microservices, developing middleware platforms, and data formats for communication. It shows how different concepts, namely API, data formats, communication models, and middleware platforms, fit together to enable inter-service interaction and hence integration. The chapter discusses how to design API for microservices, how to establish a middleware platform with existing frameworks, and different data formats for communication. The design of an API is very important because, with the growth of the internet, a microservice needs to handle thousands of queries and requests from several users in a short time. OpenAPI specification provides support for developing server-side as well as client-side code generation. RESTful API Modeling Language (RAML) is an acronym standing for RESTful API Modeling Language. RAML, a vendor-neutral, open-specification language, built on Yet Ain’t Markup Language 1.2 and JavaScript Object Notation for describing RESTful APIs.