GithubHelp home page GithubHelp logo

micro-weather's Introduction

将原有天气预报系统拆分成四个微服务,通过Spring Cloud服务治理 其中使用Eureka实现服务注册 Zuul实现API网关 Feign实现软负载均衡调用和服务通信 Hystrix实现服务熔断 Spring Cloud Config解决分布式系统配置管理

技术选型

技术 说明 官网
JDK JDK8 http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
IDE Intellij IDEA https://www.jetbrains.com/idea/
Gradle 项目自动化构建 https://gradle.org/
Redis 分布式缓存 https://redis.io/
Quartz 定时任务 http://www.quartz-scheduler.org/
Thymeleaf 模板引擎 https://www.thymeleaf.org/
HttpClient Http客户端 http://hc.apache.org/httpclient-3.x/
Bootstrap 前端框架 https://v3.bootcss.com/
Eureka 服务注册和发现 http://cloud.spring.io/spring-cloud-static/Finchley.RELEASE/single/spring-cloud.html#_service_discovery_eureka_clients
Zuul API网关 http://cloud.spring.io/spring-cloud-static/Finchley.RELEASE/single/spring-cloud.html#netflix-zuul-starter
Feign 服务通信和负载均衡调用 http://cloud.spring.io/spring-cloud-static/Finchley.RELEASE/single/spring-cloud.html#_spring_cloud_openfeign
Config 分布式系统集中配置 http://cloud.spring.io/spring-cloud-static/Finchley.RELEASE/single/spring-cloud.html#_spring_cloud_config_server
Hystrix 熔断器 http://cloud.spring.io/spring-cloud-static/Finchley.RELEASE/single/spring-cloud.html#_how_to_include_hystrix

数据流向图

mark

微服务架构

mark

项目结构包说明

拆分前

服务名称 说明
micro-weather-report 完整系统

服务拆分

服务名称 说明
micro-weather-eureka-server 服务注册中心
msa-weather-eureka-client-zuul API网关
micro-weather-config-server config服务端
msa-weather-city-eureka 城市数据API微服务
msa-weather-data-eureka 天气数据API微服务
msa-weather-collection-eureka-feign 天气数据采集微服务
msa-weather-report-eureka-feign-gateway-hystrix 天气预报微服务

各个组件说明

启动

界面

mark

micro-weather's People

Contributors

zhonglunsheng avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.