دسترسی نامحدود
برای کاربرانی که ثبت نام کرده اند
برای ارتباط با ما می توانید از طریق شماره موبایل زیر از طریق تماس و پیامک با ما در ارتباط باشید
در صورت عدم پاسخ گویی از طریق پیامک با پشتیبان در ارتباط باشید
برای کاربرانی که ثبت نام کرده اند
درصورت عدم همخوانی توضیحات با کتاب
از ساعت 7 صبح تا 10 شب
ویرایش: [1 ed.]
نویسندگان: Tural Suleymani
سری:
ISBN (شابک) : 9781788625401
ناشر: Packt Publishing
سال نشر: 2024
تعداد صفحات: 406
زبان: English
فرمت فایل : PDF (درصورت درخواست کاربر به PDF، EPUB یا AZW3 تبدیل می شود)
حجم فایل: 7 Mb
در صورت تبدیل فایل کتاب Hands-On Microservices with JavaScript: Build scalable web applications with JavaScript, Node.js, and Docker به فرمت های PDF، EPUB، AZW3، MOBI و یا DJVU می توانید به پشتیبان اطلاع دهید تا فایل مورد نظر را تبدیل نمایند.
توجه داشته باشید کتاب میکروسروس های دستی با JavaScript: ساخت برنامه های وب مقیاس پذیر با JavaScript ، Node.js و Docker نسخه زبان اصلی می باشد و کتاب ترجمه شده به فارسی نمی باشد. وبسایت اینترنشنال لایبرری ارائه دهنده کتاب های زبان اصلی می باشد و هیچ گونه کتاب ترجمه شده یا نوشته شده به فارسی را ارائه نمی دهد.
Hands-On Microservices with JavaScript
Contributors
About the author
About the reviewer(s)
Preface
Who this book is for
What this book covers
To get the most out of this book
Download the example code files
Conventions used
Get in touch
Share Your Thoughts
Download a free PDF copy of this book
Part 1:Fundamentals of Microservices Architecture
1
Introduction to Microservices
Introducing microservices
Moving toward microservices
Understanding a big ball of mud
Understanding the software development process
Exploring the monolith approach
What is service-oriented architecture?
The differences between SOA and microservices
Advantages of microservices
Disadvantages of microservices
Summary
2
Diving into Microservices Internals
Solidifying the communication
Microservice communication techniques
Introduction to APIs
What exactly is REST?
HTTP-based REST implementation
HTTP response status codes
Introduction to GraphQL
Remote Procedure Call
Synchronous microservice communication
Asynchronous microservice communication
Essential communication patterns
Message brokers
Summary
3
What Do You Need Before Getting Started?
Technical requirements
JavaScript essentials
JavaScript engine
JavaScript runtime
Callback-based asynchronous JavaScript
The way to promises
Promise API
Async/await in JavaScript
Microtask queue
Node.js essentials
Summary
4
Stack Development Technologies
Technical requirements
Node.js and its installation
Installing Node.js for Windows
Installing Node.js for macOS and Linux
Node.js frameworks
Express.js
NestJS
Choosing between Express.js and Node.js
Choosing the right IDE
Understanding and installing Docker
Understanding and installing Apache Kafka
Understanding and installing Git
Installing Postman
Installing MongoDB
Summary
Part 2:Building and Managing Microservices
5
Basic CRUD Microservices
Technical requirements
Understanding business requirements
Tools to develop a basic microservice
Preparing our first project
Understanding the concept of packages
Understanding the package.json file
Understanding index.js files
Installing the required packages
Defining the internal architecture of our microservice
MVC architectural pattern
Integrating MVC into our Node.js project
Hands-on account microservice development
Implementing our data-access functionalities
Implementing the M in MVC
Storing configuration
Implementing the business layer
Implementing the controller
Simple data validation for your API
Implementing routing
Constructing our web application
Combining all the elements
Running and testing our first microservice
Creating a new account
Getting an account by ID
Updating an account by ID
Gettings all accounts
Deleting account by ID
Summary
6
Synchronous Microservices
Technical requirements
Understanding the requirements for the transaction microservice
Tools to develop the transaction microservice
NestJS
Docker
Prisma ORM
Hands-on transaction microservice development
Dockerizing your PostgreSQL instance
Modeling the data
Seeding test data
Implementing the transaction service
Configuring Swagger
Working on transaction implementation
Establishing synchronous communication with the account microservice
Summary
7
Asynchronous Microservices
Technical requirements
Understanding the requirements
Exploring asynchronous communication
Implementing an asynchronous transaction microservice
Getting started with Kafka for NestJS
Cluster and brokers in Kafka
Topic and partition concepts in Apache Kafka
Configuring Apache Kafka
Adding an asynchronous nature to a transaction microservice
Adapting an account service to new requirements
Testing our microservices together
Summary
8
Real-Time Data Streaming Using Microservices
Technical requirements
What is real-time streaming?
Why real-time data is essential
Understanding use cases
Relationship between real-time streaming and microservices
Microservices we will develop
Getting started with an earthquake streaming API
Implementing the earthquake stream consumer
Summary
Part 3:Securing, Testing, and Deploying Microservices
9
Securing Microservices
Technical requirements
Security, authentication, and authorization in microservices
Understanding security
Exploring authentication
Defining authorization
Best practices for authorization
Difference between authentication and authorization
Getting started with JWTs
Implementing an Authentication microservice
Integrating token-based authentication for the account microservice
Summary
10
Monitoring Microservices
Technical requirements
Importance of observability
Introduction to logging
Logging levels and node libraries
Log formats
Best practices for logging
Implementing logging in your microservices
Centralized logging with Elasticsearch, Logstash, and Kibana (ELK) stack
A brief introduction to Logstash
A brief introduction to Elasticsearch
A brief introduction to Kibana
Summary
11
Microservices Architecture
Technical requirements
Getting started with an API gateway
How an API Gateway works
Single versus multiple API gateways
Implementing microservices using an API gateway
CQRS and event sourcing
Understanding CQRS
Event sourcing
Event store
Implementing CQRS and event sourcing
Commands and handlers
Implementing an aggregate root
Implementing projection
Implementing API functionalities
Testing an application
Service Registry and discovery in microservices
Understanding Service Registry and discovery
Approaches for implementing Service Registry and Discovery
Implementing Service Registry
Summary
12
Testing Microservices
Technical requirements
Understanding testing in a microservice architecture
Understanding unit tests
Introducing unit testing packages
What should we test in unit testing?
Implementing unit tests for the account microservice
Writing unit tests for the transaction microservice
Comparing mocks, stubs, and spies in unit tests
Mocks
Stubs
Spies
Understanding and implementing integration tests
Summary
13
A CI/CD Pipeline for Your Microservices
The essentials of CI/CD processes
Understanding CI
Understanding CD
Integrating CI/CD into microservices
Working with Azure Cloud
Working with GitHub Actions
Understanding Secrets
Building a pipeline
Summary
Index
Why subscribe?
Other Books You May Enjoy
Packt is searching for authors like you
Share Your Thoughts
Download a free PDF copy of this book