在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:apssouza22/java-microservice开源软件地址:https://github.com/apssouza22/java-microservice开源编程语言:Java 85.2%开源软件介绍:Bootstrap project to work with microservices using JavaWatch the videos demonstrating the project Read about the project here The idea of this project is to provide you a bootstrap for your next microservice architecture using Java. we are addressing main challenges that everyone faces when is starting with microservices. This project will definitely help you get an understand about microservices world and save you a lot of time in setting your initial microservice architecture. Basically, if you are interested in microservice, either study or want to implement microservice approach at your work, this project is for you! Microservice principles addressed:
Microservice patterns:
Free Advanced Java CourseI am the author of the Advanced Java for adults course. This course contains advanced and not conventional lessons. In this course, you will learn to think differently from those who have a limited view of software development. I will provoke you to reflect on decisions that you take in your day to day job, which might not be the best ones. This course is for middle to senior developers and we will not teach Java language features but how to lead complex Java projects. This course's lectures are based on a Trading system, an opensource project hosted on my Github. Technologies that you will see in this system: Spring Boot, Spring Data, Spring Cloud Eureka, Load Balancing with Ribbon, Declarative REST Clients with Feign, Software Circuit Breakers with Hystrix, Administrating using Spring admin,Log management with Elastic search, Logstash and Kibana (ELK), Server load balancing with Nginx, Infrastructure management with Docker-compose, JMX application monitoring, Security with Spring Security OAuth, Oauth2 with JWT, Aspect Oriented Programing, Distributed events with Kafka, Spring Stream Maven Multimodule project, Event Sourcing, CQRS, REST, Web Sockets, Continuous deploy with Jenkins, and all developed using Java 8. How to use
Continuous deploy using Jenkins PipelineWe have created a docker image in order to have continuous deploy in our project here. This image will contain all necessary to build our project, create the Docker images and deploy on AWS using ECS containers. To make this integration easy, we have added the Deploy on AWS
Accessing the services
ScalingNGINX will be configured for browser caching of the static content and Load balance. For that we will need to scale our App Gateway
and update manually the ports in
And we will run the compose file with
URLsMonitoring stream - http://localhost:8022/turbine.stream To-dos http://localhost:8015/todos Users http://localhost:8016/accounts Eureka server - http://localhost:8010/ Config server - http://localhost:8888/ Boot admin - http://localhost:8026 Kimbana - http://localhost:5601 Elasticsearch Info: http://localhost:9200 Elasticsearch Status: http://localhost:9200/_status?pretty NGINX Status: localhost:8055/nginx_status docker-compose -p todo up docker-compose -p todo down OBS
Useful CommandsCreating to-do via Curl
Stopping, Starting, Restarting...
Application Startup Issues# stop / start Tomcat
docker exec -it container-name sh /usr/local/tomcat/bin/startup.sh
docker exec -it container-name sh /usr/local/tomcat/bin/shutdown.sh
# check logs for start-up issues...
docker exec -it container-name cat /usr/local/tomcat/logs/catalina.out
docker logs container-name KafkaInside the Kafka container
Data
TODO
That's all. Leave a star if it helped you! |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论