Book Image

TypeScript Microservices

Book Image

TypeScript Microservices

Overview of this book

In the last few years or so, microservices have achieved the rock star status and right now are one of the most tangible solutions in enterprises to make quick, effective, and scalable applications. The apparent rise of Typescript and long evolution from ES5 to ES6 has seen lots of big companies move to ES6 stack. If you want to learn how to leverage the power of microservices to build robust architecture using reactive programming and Typescript in Node.js, then this book is for you. Typescript Microservices is an end-to-end guide that shows you the implementation of microservices from scratch; right from starting the project to hardening and securing your services. We will begin with a brief introduction to microservices before learning to break your monolith applications into microservices. From here, you will learn reactive programming patterns and how to build APIs for microservices. The next set of topics will take you through the microservice architecture with TypeScript and communication between services. Further, you will learn to test and deploy your TypeScript microservices using the latest tools and implement continuous integration. Finally, you will learn to secure and harden your microservice. By the end of the book, you will be able to build production-ready, scalable, and maintainable microservices using Node.js and Typescript.
Table of Contents (17 chapters)
Title Page
Copyright and Credits
Packt Upsell
Contributors
Preface
Index

Scalability


Today, in the world of competitive marketing, an organization's key point is to have their system up and running. Any failure or downtime directly impacts business and revenue; hence, high availability is a factor that cannot be overlooked. Day by day, the mountain of information is growing thanks to the in-depth use of technology and the numerous ways we use it. Because of this, load average goes beyond the roof. Day by day, data is growing exponentially.

In some cases, it is unpredictable that data cannot exceed up to some limit or a variety of users won't depart out of bounds. Scalability is a preferable solution to handle and meet unexpected demands at any point in time. Scalability can scale horizontally (we scale by adding more machines to a pool of resources) and vertically (we scale by adding more CPU/RAM to an existing machine). In terms of data, spanning database and loads of application queries over multiple servers. We can add instances in order to handle load, descale...