Summary
In this chapter, we focused on connecting a Ballerina application with databases and building a simple order management system that runs on a distributed system. We discussed how to connect different types of databases with Ballerina built-in libraries. We further discussed using MySQL as the backend database and how we can use different types in the Ballerina language to map to different MySQL data types.
The order management system that we discussed in the first chapter was implemented as an example by using the MySQL database. We also discussed transaction management, which is an essential part of building any application.
Further, we discussed writing applications in a distributed manner using different methodologies. To handle distributed transactions, we discussed the saga pattern. To hold the previous status of the system, we discussed using event stores. We also discussed CQRS patterns that separate read and write operations along with the event store. All of...