Spring Cloud 入门 -- 搭建Eureka注册中心 实现服务者与消费者的服务调用

本文介绍了Spring Cloud的基础概念,包括它与Spring Boot的关系和与Dubbo的区别。重点讲述了Eureka作为服务注册与发现组件的特性和优势。通过一个实际案例,演示了如何搭建Eureka注册中心,以及服务提供者和消费者之间的调用流程。适合对微服务感兴趣,特别是寻求Spring Cloud入门的读者。
摘要由CSDN通过智能技术生成

哈喽!大家好,我是【Bug 终结者,【CSDN新星创作者】🏆,阿里云技术博主🏆,51CTO人气博主🏆,INfoQ写作专家🏆

一位上进心十足,拥有极强学习力的【Java领域博主】😜😜😜

🏅【Bug 终结者】博客的领域是【面向后端技术】的学习,未来会持续更新更多的【后端技术】以及【学习心得】。 偶尔会分享些前端基础知识,会更新实战项目,面向企业级开发应用

🏅 如果有对【后端技术】、【前端领域】感兴趣的【小可爱】,欢迎关注【Bug 终结者】💞💞💞

❤️❤️❤️ 感谢各位大可爱小可爱! ❤️❤️❤️

文章目录

  • 一、什么是Spring Cloud?

  • 二、Spring Cloud 与 Spring Boot 的关系

  • 三、Spring Cloud 与Dubbo 的区别

    • ⛽服务的调用方式
  • ⛽社区更新力度

  • 四、Spring Cloud 能干什么?

  • 五、什么是Eureka?

  • 六、Eureka 的特性及优点

  • 七、Spring Cloud入门案例 – 搭建Eureka注册中心

    • ✴️需求说明
  • ❇️ 效果图

  • ♻️项目结构

  • ⏳核心源码

    • ⌚父级模块
  • ⌚实体类模块

  • ⌚注册中心模块

  • ⌚服务提供者模块

  • ⌚服务消费者模块

  • 八、源码下载

  • ♨️往期精彩热文回顾

  • ⛵小结

一、什么是Spring Cloud?

=====================================================================================

摘自Spring Cloud官网

Spring Cloud provides tools for developers to quickly build some of the common patterns in distributed systems (e.g. configuration management, service discovery, circuit breakers, intelligent routing, micro-proxy, control bus, one-time tokens, global locks, leadership election, distributed sessions, cluster state). Coordination of distributed systems leads to boiler plate patterns, and using Spring Cloud developers can quickly stand up services and applications that implement those patterns. They will work well in any distributed environment, including the developer’s own laptop, bare metal data centres, and managed platforms such as Cloud Foundry.

以上翻译如下:

Spring Cloud 为开发者提供了工具来快速构建分布式系统中的一些常见模式(例如配置管理、服务发现、断路器、智能路由、微代理、控制总线、一次性令牌、全局锁、领导选举、分布式会话,集群状态)。分布式系统的协调导致了样板模式,使用 Spring Cloud 开发人员可以快速建立实现这些模式的服务和应用程序。它们在任何分布式环境中都能很好地工作,包括开发人员自己的笔记本电脑、裸机数据中心以及 Cloud Foundry 等托管平台。

在这里插入图片描述

大致意思就是 Spring Cloud 是一个分布式框架基于Spring Boot微服务,将一个一个独立的模块聚合,达到了“高内聚 · 低耦合

二、Spring Cloud 与 Spring Boot 的关系

===================================================================================================

  • Spring Boot专注于开发方便的开发单个个体微服务;

  • Spring Cloud是关注全局的微服务协调整理治理框架,它将Spring Boot开发的一个个单体微服务,整合并管理起来,为各个微服务之间提供:配置管理、服务发现、断路器、路由、为代理、事件总栈、全局锁、决策竞选、分布式会话等等集成服务;

  • Spring Boot专注于快速、方便的开发单个个体微服务,Spring Cloud关注全局的服务治理框架

  • 21
    点赞
  • 11
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值