## Spring Microservices in Action - Second Edition. Chapter 12
# Introduction
Welcome to Spring Microservices in Action, Chapter 12. Chapter 12 is almost the end of the book and demonstrates how to create a build and deployment pipeline. We walkthrough how to build this pipeline and then deploy all of the services to Amazon's Elastic Kubernetes Service (EKS).
By the time you are done reading this chapter you will be able to build and/or deploy:
1. A Spring Cloud based OAuth2 authentication service that can issue and validate JWT tokens.
2. A Spring Cloud Config server that is deployed as Docker container and can manage a services configuration information using a file system or GitHub-based repository.
3. A Eureka server running as a Spring-Cloud based service. This service will allow multiple service instances to register with it. Clients that need to call a service will use Eureka to lookup the physical location of the target service.
4. A API Gateway. All of our microservices can be routed through the gateway and have pre, response and post policies enforced on the calls.
5. A organization service that will manage organization data used within Ostock.
6. A licensing service that will manage licensing data used within Ostock.
7. A Postgres SQL database used to hold the data.
8. A Kafka message bus to transport messages between services.
9. A Redis service to act as a distributed cache.
9. A set of ELK Stack applications (Elasticsearch, Logstash, Kibana)
10.A Zipkin Server
Our PostgreSQL database and Redis service have now been moved to Amazon services.
You can find all of the service.yaml and deployment.yaml files in the AWS folder. Also all the required configuration to create the ELK stack EC2 instance.
## Initial Configuration
1. Apache Maven (http://maven.apache.org) All of the code examples in this book have been compiled with Java version 12.
2. Git Client (http://git-scm.com)
3. Docker(https://www.docker.com/products/docker-desktop)
## How To Use
To clone and run this application, you'll need [Git](https://git-scm.com), [Maven](https://maven.apache.org/), [Java 12](https://www.oracle.com/technetwork/java/javase/downloads/jdk12-downloads-5066655.html). From your command line:
```bash
# Clone this repository
$ git clone https://github.com/ihuaylupo/manning-smia
# Go into the repository, by changing to the directory where you have downloaded the
# Chapter 12 source code and select whether you want the initial or final configuration
$ cd chapter12
# To build the code examples for Chapter 12 as a docker image, open a command-line
# window and execute the following command:
$ mvn clean package dockerfile:build
# Now we are going to use docker-compose to start the actual image. To start the docker image, stay in the directory containing your Chapter 12 source code and Run the following command:
$ docker-compose -f docker/docker-compose.yml up
```
# The build command
Will execute the [Spotify dockerfile plugin](https://github.com/spotify/dockerfile-maven) defined in the pom.xml file.
Running the above command at the root of the project directory will build all of the projects. If everything builds successfully you should see a message indicating that the build was successful.
# The Run command
This command will run our services using the docker-compose.yml file located in the /docker directory.
If everything starts correctly you should see a bunch of Spring Boot information fly by on standard out. At this point all of the services needed for the chapter code examples will be running.
# Database
You can find the database script as well in the docker directory.
## Contact
I'd like you to send me an email on <illaryhs@gmail.com> about anything you'd want to say about this software.
### Contributing
Feel free to file an issue if it doesn't work for your code sample. Thanks.
没有合适的资源?快使用搜索试试~ 我知道了~
manning-smia-master.zip
共1011个文件
java:433个
properties:122个
yml:71个
需积分: 0 1 下载量 35 浏览量
2023-09-27
21:04:52
上传
评论
收藏 3.06MB ZIP 举报
温馨提示
manning-smia-master.zip
资源推荐
资源详情
资源评论
收起资源包目录
manning-smia-master.zip (1011个子文件)
mvnw.cmd 6KB
mvnw.cmd 6KB
mvnw.cmd 6KB
mvnw.cmd 6KB
mvnw.cmd 6KB
mvnw.cmd 6KB
mvnw.cmd 6KB
mvnw.cmd 6KB
mvnw.cmd 6KB
mvnw.cmd 6KB
mvnw.cmd 6KB
mvnw.cmd 6KB
mvnw.cmd 6KB
mvnw.cmd 6KB
mvnw.cmd 6KB
mvnw.cmd 6KB
mvnw.cmd 6KB
mvnw.cmd 6KB
mvnw.cmd 6KB
mvnw.cmd 6KB
mvnw.cmd 6KB
mvnw.cmd 6KB
mvnw.cmd 6KB
mvnw.cmd 6KB
mvnw.cmd 6KB
mvnw.cmd 6KB
mvnw.cmd 6KB
mvnw.cmd 6KB
mvnw.cmd 6KB
mvnw.cmd 6KB
mvnw.cmd 6KB
mvnw.cmd 6KB
mvnw.cmd 6KB
mvnw.cmd 6KB
mvnw.cmd 6KB
mvnw.cmd 6KB
mvnw.cmd 6KB
mvnw.cmd 6KB
mvnw.cmd 6KB
mvnw.cmd 6KB
mvnw.cmd 6KB
mvnw.cmd 6KB
mvnw.cmd 6KB
mvnw.cmd 6KB
mvnw.cmd 6KB
mvnw.cmd 6KB
mvnw.cmd 6KB
mvnw.cmd 6KB
logstash.conf 198B
logstash.conf 198B
logstash.conf 198B
Dockerfile 847B
Dockerfile 847B
Dockerfile 843B
Dockerfile 843B
Dockerfile 843B
Dockerfile 843B
Dockerfile 843B
Dockerfile 843B
Dockerfile 843B
Dockerfile 843B
Dockerfile 843B
Dockerfile 843B
Dockerfile 843B
Dockerfile 843B
Dockerfile 843B
Dockerfile 843B
Dockerfile 843B
Dockerfile 843B
Dockerfile 843B
Dockerfile 843B
Dockerfile 843B
Dockerfile 835B
Dockerfile 835B
Dockerfile 835B
Dockerfile 835B
Dockerfile 835B
Dockerfile 835B
Dockerfile 833B
Dockerfile 833B
Dockerfile 833B
Dockerfile 833B
Dockerfile 833B
Dockerfile 833B
Dockerfile 833B
Dockerfile 833B
Dockerfile 833B
Dockerfile 833B
Dockerfile 833B
Dockerfile 830B
Dockerfile 830B
Dockerfile 830B
Dockerfile 830B
Dockerfile 830B
Dockerfile 830B
Dockerfile 830B
Dockerfile 830B
.DS_Store 6KB
.DS_Store 6KB
.DS_Store 6KB
共 1011 条
- 1
- 2
- 3
- 4
- 5
- 6
- 11
资源评论
禽可择木而栖
- 粉丝: 10
- 资源: 1
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功