
- 498 pages
- English
- ePUB (mobile friendly)
- Available on iOS & Android
Cloud Native Applications with Ballerina
About this book
Learn how to build scalable cloud native applications with the new-generation Ballerina language using expert tips and best practicesKey Featuresโข Work with code samples based on the Ballerina Swan Lake Beta1 versionโข Explore the in-built networking protocol support in Ballerina to develop secure distributed appsโข Build a Ballerina app with an automated CI/CD pipeline with observability to simplify maintenance and deploymentBook DescriptionThe Ballerina programming language was created by WSO2 for the modern needs of developers where cloud native development techniques have become ubiquitous. Ballerina simplifies how programmers develop and deploy cloud native distributed apps and microservices.Cloud Native Applications with Ballerina will guide you through Ballerina essentials, including variables, types, functions, flow control, security, and more. You'll explore networking as an in-built feature in Ballerina, which makes it a first-class language for distributed computing. With this app development book, you'll learn about different networking protocols as well as different architectural patterns that you can use to implement services on the cloud. As you advance, you'll explore multiple design patterns used in microservice architecture and use serverless in Amazon Web Services (AWS) and Microsoft Azure platforms. You will also get to grips with Docker, Kubernetes, and serverless platforms to simplify maintenance and the deployment process. Later, you'll focus on the Ballerina testing framework along with deployment tools and monitoring tools to build fully automated observable cloud applications.By the end of this book, you will have learned how to apply the Ballerina language for building scalable, resilient, secured, and easy-to-maintain cloud native Ballerina projects and applications.What you will learnโข Understand the concepts and models in cloud native architectureโข Get to grips with the high-level concepts of building applications with the Ballerina languageโข Use cloud native architectural design patterns to develop cloud native Ballerina applicationsโข Discover how to automate, maintain, and observe cloud native Ballerina applicationsโข Use a container to deploy and maintain a Ballerina application with Docker and Kubernetesโข Explore serverless architecture and use Microsoft Azure and the AWS platform to build serverless applicationsWho this book is forThis Ballerina Swan Lake book is for cloud developers, integration developers, and microservices developers who are facing challenges with legacy tooling and are looking for the latest tools and technologies to solve them. Beginner-level programming knowledge is required before getting started with this Ballerina book.
Frequently asked questions
- Essential is ideal for learners and professionals who enjoy exploring a wide range of subjects. Access the Essential Library with 800,000+ trusted titles and best-sellers across business, personal growth, and the humanities. Includes unlimited reading time and Standard Read Aloud voice.
- Complete: Perfect for advanced learners and researchers needing full, unrestricted access. Unlock 1.4M+ books across hundreds of subjects, including academic and specialized titles. The Complete Plan also includes advanced features like Premium Read Aloud and Research Assistant.
Please note we cannot support devices running on iOS 13 and Android 7 or earlier. Learn more about using the app.
Information
Section 1: The Basics
- Chapter 1, Introduction to Cloud Native
- Chapter 2, Getting Started with Ballerina
Chapter 1: Introduction to Cloud Native
- Evolution from the monolithic to the microservice architecture
- Understanding what the cloud native architecture is
- Building cloud native applications
- The impact on organizations when moving to cloud native
Evolution from the monolithic to the microservice architecture
The N-tier architecture in monolithic applications

Monolithic application architecture

- Monolithic applications are designed, built, and implemented in a single unit. Therefore, all the components of the architecture of the system should be closely connected. In most cases, point-to-point communication makes it more difficult to introduce a new feature component to the application later.
- As a monolithic application grows, it takes more time to start the entire application. Changing existing components or adding new features to the system may require stopping the whole system. This makes the deployment process slower and much more unstable.
- On the other hand, having an unstable service in the system means the entire system is fragile. Since the components of a monolithic application are tightly coupled with each other, all components should function as planned. Having a problem in one subsystem causes all the dependent components to fail.
- It is difficult to adopt modern technology because a monolithic application is built on homogeneous languages and frameworks. This makes it difficult to move forward with new technologies, and inevitably the whole system will become a legacy ...
Table of contents
- Cloud Native Applications with Ballerina
- Contributors
- Preface
- Section 1: The Basics
- Chapter 1: Introduction to Cloud Native
- Chapter 2: Getting Started with Ballerina
- Section 2: Building Microservices with Ballerina
- Chapter 3: Building Cloud Native Applications with Ballerina
- Chapter 4: Inter-Process Communication and Messaging
- Chapter 5: Accessing Data in Microservice Architecture
- Section 3: Moving on with Cloud Native
- Chapter 6: Moving on to Serverless Architecture
- Chapter 7: Securing the Ballerina Cloud Platform
- Chapter 8: Monitoring Cloud Native Applications
- Chapter 9: Integrating Ballerina Cloud Native Applications
- Chapter 10: Building a CI/CD Pipeline for Ballerina Applications
- Other Books You May Enjoy