Skip to content

A weather forecast micro-services based on Spring Boot and Spring Cloud.

Notifications You must be signed in to change notification settings

yuhaolu1994/micro-weather-service

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

micro-weather-service

To improve server efficiency by micro-services architecture.

This application is generated using Spring Boot 2.0.6.RELEASE and Spring Cloud Finchley.SR2.

Development

Before you can build this project, you must install and configure the following dependencies on your machine:

  1. JDK: use java to run the complied .jar file.
  2. Gradle: use Gradle to manage Spring dependencies.

Run the following commands in each separate terminal of 5 different branches (micro-services)

./gradlew
cd build/libs
java -jar your_package_name.jar --server.port=port_number

Pay attention to the order of running the instance of 5 micro-services on different ports.

  1. micro-weather-eureka-server
  2. msa-weather-city-eureka
  3. msa-weather-collection-eureka-feign
  4. msa-weather-data-eureka
  5. msa-weather-eureka-client-zuul
  6. msa-weather-report-eureka-feign-gateway-hystrix

Check the client instance on the Eureka server.

Architecture

Technology

Front End

  • Bootstrap
  • Thymeleaf
  • jQuery

Back End

  • Spring Boot
  • Spring Cloud
  • Spring MVC
  • Apache HttpClient
  • Quartz Scheduler

Micro Service Managment

  • Eureka
  • OpenFeign
  • Zuul
  • Hystrix

Data Processing

  • XmlBuilder.xmlStrToObject
  • restTemplate.getForEntity
  • stringRedisTemplate.opsForValue