Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Practical Site Reliability Engineering
Practical Site Reliability Engineering

Practical Site Reliability Engineering: Automate the process of designing, developing, and delivering highly reliable apps and services with SRE

Arrow left icon
Profile Icon Pethuru Raj Chelliah Profile Icon Singh Profile Icon Naithani
Arrow right icon
₱1256.99 ₱1796.99
eBook Nov 2018 390 pages 1st Edition
eBook
₱1256.99 ₱1796.99
Paperback
₱2245.99
Subscription
Free Trial
Arrow left icon
Profile Icon Pethuru Raj Chelliah Profile Icon Singh Profile Icon Naithani
Arrow right icon
₱1256.99 ₱1796.99
eBook Nov 2018 390 pages 1st Edition
eBook
₱1256.99 ₱1796.99
Paperback
₱2245.99
Subscription
Free Trial
eBook
₱1256.99 ₱1796.99
Paperback
₱2245.99
Subscription
Free Trial

What do you get with eBook?

Product feature icon Instant access to your Digital eBook purchase
Product feature icon Download this book in EPUB and PDF formats
Product feature icon Access this title in our online reader with advanced features
Product feature icon DRM FREE - Read whenever, wherever and however you want
OR
Modal Close icon
Payment Processing...
tick Completed

Billing Address

Table of content icon View table of contents Preview book icon Preview Book

Practical Site Reliability Engineering

Microservices Architecture and Containers

Microservices are changing the mentality of people who design software. In this chapter, we are going to cover various definitions, principles, deployment techniques, tools, and techniques related to microservices. We are also going to show deployments using tools and technologies that are widely available in the cloud era. We will be covering how to deploy Serverless containers, and we will also mention existing virtualization technology. We will then provide some examples regarding how to develop microservices using the Spring Framework.

In this chapter, we will learn about the following topics:

  • Introducing microservices
  • Microservices design principles
  • Different options for deploying microservices 
  • Microservices using the Spring Boot framework and the RESTful framework
  • Monitoring microservices 
  • Important information...

What are microservices?

Microservices are a software development style that has recently been developed to set up practices intended to increase the efficiency and speed of developing and managing software solutions so that they can be scaled easily. This set of practices is technology agnostic, which means that there is not one single programming language or technology to build microservices. In fact, you can build microservices with any programming language. It's more about applying a certain number of architectural patterns and principles to your program.

Microservice design principles

There are several different microservices design principles available. Different terms are likely to be used in different places. In this book, we will refer to the microservices design principles as follows:

  • High cohesion among services: A microservice should have one single focus and the sole responsibility for that action. It should not change as a result of other related services. Services should be easily rewritable so that we can achieve scalability, reliability, and flexibility. It should handle a single business function and domain-specific functionality.
  • Autonomous service: A service should independently handle its work without the help of any other services. It should not be tightly integrated with any other service; it should remain loosely coupled in nature. By autonomous, we mean that a microservice should not change because of the...

Deploying microservices

Let's start to think practically about microservice deployment. We are going to look at the latest container technologies and orchestrator tools that are dominating the microservice market. First, we will list the availability of tools and options and then we will look at an example to show you how things can be deployed in the microservice model.

Microservices can be deployed on the following platforms:

  • Container platforms: These include technologies such as Docker, rkt, AWS ECS, and AWS EKS.
  • Code as a function: We can deploy bare functions written in supported programming languages on AWS Lambda-like platforms. These platforms will run that configured code and store the result on an S3-like bucket or a supported database on a cloud vendor platform. Alternatively, the code might trigger a further configured action. It can be called through AWS...

Practical examples of microservice deployment

In this section, we're going to look at some relevant examples using the latest technologies. This will give you an easy reference guide to consult when implementing your own deployment strategy.

A container platform deployment example with Kubernetes

In the following Kubernetes YAML configuration, we will define various Kubernetes keywords related to deployment. One important variable is container: image. Here, we are referring to an existing Docker container image that Kubernetes will use to create a container under pod deployment. This container image should already be customized to suit your requirements. The kubectl command will read this configuration...

Microservices using Spring Boot and the RESTful framework

The code bases of different companies often grow exponentially and increase in complexity. In a monolithic process, we have multiple independent development teams. These teams are not actually that independent at all; they simultaneously work on the same code bases and change the same sections of code. It is tough for new developers to contribute to the business, and the development process is slow. Because of this, we have seen a gradual shift toward microservices.

The following diagram shows the microservice container, the business logic image container, the data access layer container, and, in total, a working model of a microservice-based distributed model:

The Spring Framework is an enterprise Java framework that lets us write enterprise Java applications. Spring Boot is the way in which we can bootstrap, or quickly...

Jersey Framework

Jersey is an open source framework developed by Oracle. It is the official reference implementation of JAX-RS API, which is very similar to Apache CFX. On the server side, Jersey provides a servlet implementation that scans through the predefined classes we define to identified the restful resources. In the web.xml file, which is the deployment file for web applications, we can configure either the restful servlet or the jersey servlet.

Jersey provides the implementation of the client library, which is fully compliant with the JAX-RS API. It also provides several tools for security such as authorization or bean validation. Furthermore, it allows us to integrate testing for container deployments. The current version of Jersey is 2.27. You can learn more about Jersey by going to its official website at http://jersey.java.net.

For Spring integration...

Representational State Transfer (REST)

This is used for the purpose of data communication across web APIs. The REST API works pretty much in the same way as a website: you make a call from the client to the server and get a HTTP response back. REST uses HTTP methods to interact with the client and the server. REST allows a variety of data formats such as JSON or XML. It is generally faster and uses less bandwidth. It is also easy to integrate with other applications.

Commonly used HTTP methods in REST APIs include the following:

  • GET: This is used for retrieving a data through APIs. It is a read-only method. It is safe to use duplicate GET methods.
  • PUT: This is used to change or update a data using APIs. It is a write method, and we can use duplicate PUT methods.
  • POST: This is used to create or insert data. It is a write method.
  • DELETE: This is used to remove a particular piece...

What are microservices?


Microservices are a software development style that has recently been developed to set up practices intended to increase the efficiency and speed of developing and managing software solutions so that they can be scaled easily. This set of practices is technology agnostic, which means that there is not one single programming language or technology to build microservices. In fact, you can build microservices with any programming language. It's more about applying a certain number of architectural patterns and principles to your program.

Microservice design principles


There are several different microservices design principles available. Different terms are likely to be used in different places. In this book, we will refer to the microservices design principles as follows:

  • High cohesion among services: A microservice should have one single focus and the sole responsibility for that action. It should not change as a result of other related services. Services should be easily rewritable so that we can achieve scalability, reliability, and flexibility. It should handle a single business function and domain-specific functionality.
  • Autonomous service: A service should independently handle its work without the help of any other services. It should not be tightly integrated with any other service; it should remain loosely coupled in nature. By autonomous, we mean that a microservice should not change because of the external components with which it interacts. Autonomous services honor contracts and interfaces. They should be stateless...
Left arrow icon Right arrow icon
Download code icon Download Code

Key benefits

  • Build and run highly available, scalable, and secure software
  • Explore abstract SRE in a simplified and streamlined way
  • Enhance the reliability of cloud environments through SRE enhancements

Description

Site reliability engineering (SRE) is being touted as the most competent paradigm in establishing and ensuring next-generation high-quality software solutions. This book starts by introducing you to the SRE paradigm and covers the need for highly reliable IT platforms and infrastructures. As you make your way through the next set of chapters, you will learn to develop microservices using Spring Boot and make use of RESTful frameworks. You will also learn about GitHub for deployment, containerization, and Docker containers. Practical Site Reliability Engineering teaches you to set up and sustain containerized cloud environments, and also covers architectural and design patterns and reliability implementation techniques such as reactive programming, and languages such as Ballerina and Rust. In the concluding chapters, you will get well-versed with service mesh solutions such as Istio and Linkerd, and understand service resilience test practices, API gateways, and edge/fog computing. By the end of this book, you will have gained experience on working with SRE concepts and be able to deliver highly reliable apps and services.

Who is this book for?

Practical Site Reliability Engineering helps software developers, IT professionals, DevOps engineers, performance specialists, and system engineers understand how the emerging domain of SRE comes handy in automating and accelerating the process of designing, developing, debugging, and deploying highly reliable applications and services.

What you will learn

  • Understand how to achieve your SRE goals
  • Grasp Docker-enabled containerization concepts
  • Leverage enterprise DevOps capabilities and Microservices architecture (MSA)
  • Get to grips with the service mesh concept and frameworks such as Istio and Linkerd
  • Discover best practices for performance and resiliency
  • Follow software reliability prediction approaches and enable patterns
  • Understand Kubernetes for container and cloud orchestration
  • Explore the end-to-end software engineering process for the containerized world

Product Details

Country selected
Publication date, Length, Edition, Language, ISBN-13
Publication date : Nov 30, 2018
Length: 390 pages
Edition : 1st
Language : English
ISBN-13 : 9781788838696
Tools :

What do you get with eBook?

Product feature icon Instant access to your Digital eBook purchase
Product feature icon Download this book in EPUB and PDF formats
Product feature icon Access this title in our online reader with advanced features
Product feature icon DRM FREE - Read whenever, wherever and however you want
OR
Modal Close icon
Payment Processing...
tick Completed

Billing Address

Product Details

Publication date : Nov 30, 2018
Length: 390 pages
Edition : 1st
Language : English
ISBN-13 : 9781788838696
Tools :

Packt Subscriptions

See our plans and pricing
Modal Close icon
$19.99 billed monthly
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Simple pricing, no contract
$199.99 billed annually
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just ₱260 each
Feature tick icon Exclusive print discounts
$279.99 billed in 18 months
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just ₱260 each
Feature tick icon Exclusive print discounts

Frequently bought together


Stars icon
Total 6,992.97
Getting Started with Kubernetes
₱2500.99
Real-World SRE
₱2245.99
Practical Site Reliability Engineering
₱2245.99
Total 6,992.97 Stars icon
Banner background image

Table of Contents

13 Chapters
Demystifying the Site Reliability Engineering Paradigm Chevron down icon Chevron up icon
Microservices Architecture and Containers Chevron down icon Chevron up icon
Microservice Resiliency Patterns Chevron down icon Chevron up icon
DevOps as a Service Chevron down icon Chevron up icon
Container Cluster and Orchestration Platforms Chevron down icon Chevron up icon
Architectural and Design Patterns Chevron down icon Chevron up icon
Reliability Implementation Techniques Chevron down icon Chevron up icon
Realizing Reliable Systems - the Best Practices Chevron down icon Chevron up icon
Service Resiliency Chevron down icon Chevron up icon
Containers, Kubernetes, and Istio Monitoring Chevron down icon Chevron up icon
Post-Production Activities for Ensuring and Enhancing IT Reliability Chevron down icon Chevron up icon
Service Meshes and Container Orchestration Platforms Chevron down icon Chevron up icon
Other Books You May Enjoy Chevron down icon Chevron up icon
Get free access to Packt library with over 7500+ books and video courses for 7 days!
Start Free Trial

FAQs

How do I buy and download an eBook? Chevron down icon Chevron up icon

Where there is an eBook version of a title available, you can buy it from the book details for that title. Add either the standalone eBook or the eBook and print book bundle to your shopping cart. Your eBook will show in your cart as a product on its own. After completing checkout and payment in the normal way, you will receive your receipt on the screen containing a link to a personalised PDF download file. This link will remain active for 30 days. You can download backup copies of the file by logging in to your account at any time.

If you already have Adobe reader installed, then clicking on the link will download and open the PDF file directly. If you don't, then save the PDF file on your machine and download the Reader to view it.

Please Note: Packt eBooks are non-returnable and non-refundable.

Packt eBook and Licensing When you buy an eBook from Packt Publishing, completing your purchase means you accept the terms of our licence agreement. Please read the full text of the agreement. In it we have tried to balance the need for the ebook to be usable for you the reader with our needs to protect the rights of us as Publishers and of our authors. In summary, the agreement says:

  • You may make copies of your eBook for your own use onto any machine
  • You may not pass copies of the eBook on to anyone else
How can I make a purchase on your website? Chevron down icon Chevron up icon

If you want to purchase a video course, eBook or Bundle (Print+eBook) please follow below steps:

  1. Register on our website using your email address and the password.
  2. Search for the title by name or ISBN using the search option.
  3. Select the title you want to purchase.
  4. Choose the format you wish to purchase the title in; if you order the Print Book, you get a free eBook copy of the same title. 
  5. Proceed with the checkout process (payment to be made using Credit Card, Debit Cart, or PayPal)
Where can I access support around an eBook? Chevron down icon Chevron up icon
  • If you experience a problem with using or installing Adobe Reader, the contact Adobe directly.
  • To view the errata for the book, see www.packtpub.com/support and view the pages for the title you have.
  • To view your account details or to download a new copy of the book go to www.packtpub.com/account
  • To contact us directly if a problem is not resolved, use www.packtpub.com/contact-us
What eBook formats do Packt support? Chevron down icon Chevron up icon

Our eBooks are currently available in a variety of formats such as PDF and ePubs. In the future, this may well change with trends and development in technology, but please note that our PDFs are not Adobe eBook Reader format, which has greater restrictions on security.

You will need to use Adobe Reader v9 or later in order to read Packt's PDF eBooks.

What are the benefits of eBooks? Chevron down icon Chevron up icon
  • You can get the information you need immediately
  • You can easily take them with you on a laptop
  • You can download them an unlimited number of times
  • You can print them out
  • They are copy-paste enabled
  • They are searchable
  • There is no password protection
  • They are lower price than print
  • They save resources and space
What is an eBook? Chevron down icon Chevron up icon

Packt eBooks are a complete electronic version of the print edition, available in PDF and ePub formats. Every piece of content down to the page numbering is the same. Because we save the costs of printing and shipping the book to you, we are able to offer eBooks at a lower cost than print editions.

When you have purchased an eBook, simply login to your account and click on the link in Your Download Area. We recommend you saving the file to your hard drive before opening it.

For optimal viewing of our eBooks, we recommend you download and install the free Adobe Reader version 9.