Chapter 5: Accessing Data in Microservice Architecture
In this chapter, we will focus on accessing the database by using the Ballerina language with respect to monolithic 3-tier architecture-based applications. In the 3-tier architecture model, application logic is contained in the application layer. Single-database access for the entire system and database transaction queries are implemented in the application layer. Building an application that runs in a single database is simpler since we can join tables to query results. A microservice architecture, however, forces developers to have a database for each service. Therefore, we need to come up with a more scalable solution to handle problems related to data consistency in database per service ...
Get Cloud Native Applications with Ballerina 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.