What you will learn in Spring Microservices in Action
Chapter by chapter
Chapter 1: Chapter 1. Welcome to the cloud, Spring
The chapter introduction defines microservices and previews building them with Java and Spring.
What you learn in chapter 1 →Chapter 2: Chapter 2. Building microservices with Spring Boot
The introduction explains microservice characteristics, their benefits for cloud applications, and the perspectives needed to design and operate them.
What you learn in chapter 2 →Chapter 3: Chapter 3. Controlling your configuration with Spring Cloud configuration server
This introduction explains why microservices need configuration separated from code and outlines a scalable approach using immutable images and startup configuration.
What you learn in chapter 3 →Chapter 4: Chapter 4. On service discovery
This introduction explains service discovery and how it supports scaling and resilience in cloud-based microservices.
What you learn in chapter 4 →Chapter 5: Chapter 5. When bad things happen: client resiliency patterns with Spring Cloud and Netflix Hystrix
This introduction explains why slow or partially degraded services can exhaust client resources and cause cascading failures in microservice systems.
What you learn in chapter 5 →Chapter 6: Chapter 6. Service routing with Spring Cloud and Zuul
This introduction explains why cross-cutting behaviors are difficult to implement across microservices and how a services gateway provides a central enforcement point.
What you learn in chapter 6 →Chapter 7: Chapter 7. Securing your microservices
This introduction explains layers of application security and how OAuth2 tokens support authentication across microservices without repeatedly presenting credentials.
What you learn in chapter 7 →Chapter 8: Chapter 8. Event-driven architecture with Spring Cloud Stream
This introduction explains event-driven microservice communication and Spring Cloud Stream’s role in simplifying messaging.
What you learn in chapter 8 →Chapter 9: Chapter 9. Distributed tracing with Spring Cloud Sleuth and Zipkin
This introduction explains the challenge of debugging distributed transactions and the roles of Sleuth, Papertrail, and Zipkin in tracing them.
What you learn in chapter 9 →Chapter 10: Chapter 10. Deploying your microservices
This introduction explains why microservices need fast, automated deployment pipelines and outlines the properties of their build and runtime artifacts.
What you learn in chapter 10 →Concepts explained in this book
- microservice architectureA software architecture style in which an application is composed of independently deployable services organized around business capabilities.
- deployment pipelineAn automated sequence of processes that builds, tests, and deploys software.
- circuit breaker patternThe circuit breaker pattern prevents repeated calls to a failing or slow remote service by interrupting calls when a failure threshold is reached.
- Spring Cloud Config ServerA server that provides configuration data to applications and services.
- OAuthOAuth 2.0 is an authorization framework that enables clients to obtain limited access to protected resources.
- service registrationThe process by which a service makes its location and identifying information available to a service discovery system.
- correlation idAn identifier that associates spans and events belonging to the same distributed trace.
- ZipkinA Zipkin server is the server-side component that receives and stores trace data from instrumented services.
- Spring Cloud SleuthSpring Cloud Sleuth is a distributed-tracing library for instrumenting Spring applications with trace information.
- service discoveryThe process by which a service consumer locates an available service instance without knowing its physical network location in advance.
- horizontal scalingA scaling approach that increases capacity by launching additional service instances rather than relying only on a single instance's threads.
- Spring BootSpring Boot is an extension of the Spring Framework that simplifies the creation of stand-alone, production-ready Spring applications.
- Spring CloudSpring Cloud is a collection of tools and libraries that support common distributed-system and cloud-application patterns in Spring applications.
- fallbackA pattern that provides an alternative way for a client to carry out work when a service call fails.
- configurationThe settings that control an application's behavior.
- bulkheadA pattern that isolates calls to distributed resources so that a failure or misbehavior in one does not affect the rest of an application.
- platform testA black-box test that independently checks software against its underlying platform and infrastructure in a real environment.
- Amazon ECS CLIThe Amazon ECS CLI is a command-line tool for managing Amazon ECS resources and applications.
- @EnableBinding@EnableBinding is a Spring Cloud Stream annotation that binds an application to messaging channels.
- zuul serverZuul is an edge service gateway that routes and filters requests to backend services.
- JSON Web TokenJSON Web Token (JWT) is a compact, URL-safe format for representing claims that can be digitally signed, integrity protected, or encrypted.
- Spring Cloud StreamSpring Cloud Stream is a framework for building message-driven applications that connect to messaging systems.
- Spring profileA Spring profile is a named grouping of configuration that allows an application to select settings for a particular environment.
- channelA named Spring Cloud Stream abstraction over a queue that hides the target queue name from application code.
- Travis CITravis CI is a hosted continuous integration service that builds and tests software projects.
- API gatewayA service gateway is an entry point that proxies requests to targeted services.
- client-side load balancingClient-side load balancing selects among service instances at the client rather than routing requests through a centralized load balancer.
- client resiliency patternA client-side design pattern that helps a service consumer manage failures or performance problems when calling a remote service.
- timeout errorA timeout is a limit on how long a caller waits for an operation before treating it as failed or stopping the wait.
- configuration managementThe practice of managing configuration settings for services across their deployment and operation.
- spanA span is a timed unit of work represented within a distributed trace, often corresponding to an operation in a service.
- HystrixHystrix is a Netflix library for latency and fault tolerance in distributed systems, including circuit breaking and isolation of remote calls.
- Zuul pre-filterA Zuul filter invoked before a request is routed to its target service.
- DockerDocker is a platform for developing, shipping, and running applications in containers.
- Zuul route filterA Zuul filter that participates in routing requests to backend services.
- access-control roleA named grouping of permissions that determines what actions an assigned user or application may perform.
- security tokenA digital credential carrying information used for authentication or authorization.
- Zuul filterA unit of logic in a Zuul gateway through which service requests or responses pass.
- cross-cutting concernA cross-cutting concern is an application behavior or policy that applies across multiple services or components.
- RibbonRibbon is a Netflix client-side load-balancing library for selecting among service instances.
- service registryA repository of service-instance identifiers and location information that clients can consult to discover services.
- Source interfaceSource is a Spring Cloud Stream interface that exposes an output channel for publishing messages.
- iaasInfrastructure as a Service is a cloud service model in which a provider supplies basic computing infrastructure while the customer selects technologies and builds the solution.
- environment variableA named value provided to a process through its execution environment, often used to supply configuration.
- container imageA packaged template containing the files and configuration used to create a container.
- ci/cdA software delivery pattern in which code is automatically built and tested on commit, then promoted through deployment environments when it passes.
- controllerA class that handles incoming requests and maps them to application behavior.
- endpointAn endpoint is an addressable point in a service interface through which a client can access an operation or information.
- @pathvariableA Spring annotation that binds a method parameter to a value in a URI template.
- @requestmappingA Spring annotation that maps web requests to a controller class or handler method.
- restcontroller annotationA Spring annotation that marks a class as a web controller whose return values are written to the response body.
- thread poolA thread pool is a managed set of reusable threads that executes submitted tasks.
- immutable serverA server that is not modified after deployment and is replaced with a newly built server when changes are needed.
- Zuul post-filterA Zuul filter invoked after a request is routed that can process the response.
- ECSAmazon Elastic Container Service is a managed AWS service for deploying, managing, and scaling containers.
- configuration driftThe unintended divergence of a system’s configuration from its intended or consistently maintained state.
- infrastructure as codeThe practice of defining and managing infrastructure provisioning through executable, version-controlled code.
- log aggregationA logging pattern that gathers logs from multiple microservices and their instances into a single queryable database.
- authenticationA security pattern for determining whether a service client is the identity it claims to be.
- messagingMessaging is the exchange of information between software components through messages.
- RedisRedis is an in-memory data structure store used as a database, cache, and message broker.
- topicA Kafka topic is a named stream to which records are published and from which they can be consumed.
- HystrixConcurrencyStrategyHystrixConcurrencyStrategy is a Hystrix extension point for customizing concurrency-related behavior, including wrapping tasks submitted to Hystrix commands.
- eureka clientA Eureka client is a software component that registers an application with Eureka and can query the service registry.
- bootstrap configuration fileA bootstrap configuration file is a Spring Boot configuration file read before other application configuration and commonly holds settings needed to contact a configuration server.
- cachingA cache is a store of previously retrieved data that can be reused without querying its source again.
- authorizationThe process of determining whether a client is permitted to perform a requested action.
- resilienceMicroservice resilience is the ability of a microservice application to maintain service and recover when components fail.
- ECS clusterAn Amazon ECS cluster is a logical grouping of resources managed by Amazon ECS for running containerized applications.
- DevOpsA set of practices that integrates software development and IT operations to build, deliver, and operate software.
- twelve-factor applicationA methodology that defines twelve practices for building software-as-a-service applications.
- OAuth clientA client application is an application registered with an OAuth 2.0 service to request access to protected services.
- function as a serviceFunction as a Service is a cloud service model that runs code functions on provider-managed infrastructure and charges for their execution.
- platform as a servicePlatform as a Service is a cloud service model in which a provider manages the core platform while the customer remains responsible for its application.
- OAuth scopeA named boundary that limits the access an OAuth application requests or receives.
- RestTemplateRestTemplate is Spring's synchronous client for making HTTP requests to REST services.
- EurekaA Eureka deployment that accepts service registrations and makes the registry available to clients.
- granularityThe degree to which a software service's responsibilities are broad or narrowly scoped.
- A/B testA/B testing is a technique that presents different versions of a service or feature to different users to evaluate them before broader rollout.
- GitHubA web-based service for hosting Git repositories and collaborating on software development.
- phoenix serverA server that is periodically destroyed and recreated from an immutable image to limit accumulated configuration changes.
- scalabilityMicroservice scalability is the ability of a microservice-based system to accommodate increased demand by adjusting resources.
- RedisTemplateRedisTemplate is a Spring Data Redis class that provides operations for working with Redis data.
- Spring Data RedisSpring Data Redis is a Spring Data module that provides integration with Redis data stores.
- Spring Cloud DiscoveryClientSpring Cloud DiscoveryClient is an interface for querying services and their registered instances.
- @HystrixCommand@HystrixCommand is a Hystrix annotation that configures a method call to run with Hystrix fault-tolerance behavior.
- Sink interfaceSink is a Spring Cloud Stream interface that binds an application to an input channel for incoming messages.
- service assemblyService assembly is the process of consistently building, packaging, and deploying a service as a deployable unit.
- filesystem-based configuration repositoryA configuration repository that stores application configuration data in directories on a filesystem.
- input channelThe default Spring Cloud Stream Sink channel on which an application receives messages.
- technology-neutral protocolA communication protocol whose use does not depend on the implementation language or technology of the communicating applications.
- resource exhaustionA condition in which an application cannot continue operating effectively because needed resources have been consumed or held unavailable.
- OpenFeignFeign is a declarative HTTP client library that lets applications call remote services through defined interfaces.
- apiA defined interface through which software components or services communicate and request functionality.
- OAuth 2.0 access tokenA credential representing an OAuth 2.0 authorization grant that a client presents to access protected resources.
- cloud computing platformA cloud computing platform is an environment that offers computing resources and services over a network.
- cloud elasticityThe ability of a computing system to increase or decrease allocated resources in response to changing demand.
- containerA container is an isolated process environment that shares the host operating system's kernel and resources.
- service identifierA service identifier is a logical name associated with a service that a discovery client can resolve to registered service instances.
- virtual machineA software-emulated computer that runs an operating system and applications using virtualized hardware resources.
- service bootstrappingThe operational step of separating application configuration from runtime code so a service can start in an environment without manual setup.
- configuration repositoryA configuration repository is a storage backend that holds application configuration settings for retrieval.
- PapertrailPapertrail is a cloud-based log management service that aggregates and makes application logs searchable.
- RESTREST is an architectural style for networked systems in which resources are identified and manipulated through representations and a uniform interface.
- request-response message exchangeA request-response pattern is a communication pattern in which a caller sends a request and waits for a response before continuing.
- tight couplingTight coupling is a software design condition in which components depend strongly on one another’s interfaces or implementation details.
- peer-to-peer networkA peer-to-peer communication model is a model in which nodes communicate directly with one another rather than through a central intermediary.
- context propagationThread context propagation is the transfer of contextual data from one thread to another so the receiving thread can use that data.
- load balancerA hardware or software component that distributes requests among multiple servers or service instances.
- OAuth2RestTemplateOAuth2RestTemplate is a Spring client class for making HTTP requests to OAuth2-protected resources with OAuth2 support.
- tracingTracing is the tracking of a request's path and timing across components of a distributed system.
- access control ruleA rule that specifies which users or applications may access a service or resource and under what conditions.
These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.
