Client load balancing Ribbon

What is the Ribbon in Spring Cloud? We usually say that load balancing means that a request is evenly distributed to different node units for execution. Load balancing is divided into hardware load balancing and software load balancing; Hardware load balancing: such as F5, Shenxin, Array, etc; Software load balancing: such as Nginx, LVS, HAP ...

Posted by boiy on Wed, 06 Oct 2021 14:38:03 -0700

The five core components of spring cloud are brother Jun and brother Hou

Summary of spring cloud notes of Leyou project The mapper module of ly item commodity contains datasource Ly Cart: Shopping Cart module Ly registry: registry server, other modules are clients Ly API gateway: routing gateway Ly feign: remote call Registration Center Eureka, ly registry server Lyregister the Module as the server The s ...

Posted by pimp3679 on Tue, 05 Oct 2021 11:14:53 -0700

Spring cloud learning - Feign details (with code compression package)

preface Previous: detailed explanation of Ribbon What is Feign? It can help us realize interface oriented programming, directly call other services in this service, and simplify development. From Eureka complex configuration, to Ribbon, and then to Feign, new components will make development easier. The following is a direct demonstration. If ...

Posted by mrwutang on Tue, 05 Oct 2021 10:57:53 -0700

Microservices -- Spring Cloud Alibaba 04 (Sentinel)

         In our daily life, we often participate in the second kill, rush purchase and some preferential activities of goods on platforms such as Taobao, tmall, jd.com and pinduoduo. We also use 12306 mobile APP to grab train tickets and high-speed rail tickets on holidays. Sometimes we even help colleagu ...

Posted by FluxNYC on Mon, 04 Oct 2021 15:50:30 -0700

Learning notes of Shangsi Valley grain college 9 -- front desk user login, registration and integration jwt

User login service Single sign on (SSO) for short. Users only need to log in once to access all mutually trusted application systems Three common ways of single sign on Implementation of session broadcast mechanismUsing redis+cookieUsing token to implement Implementation of session broadcast mechanism In fact, it is session replication. Af ...

Posted by kmarsh on Mon, 04 Oct 2021 14:46:15 -0700

Shangsi Valley grain college learning notes 8 -- integrate NUXT foreground page, and redis cache has been integrated

Server side rendering technology NUXT What is server-side rendering Server side rendering, also known as SSR (Server Side Render), completes the content of the page on the server side, rather than obtaining data through AJAX on the client side. The advantages of server-side rendering (SSR) are: better SEO, because the search engine crawl ...

Posted by nagrgk on Mon, 04 Oct 2021 13:10:14 -0700

Microservices -- Spring Cloud Alibaba 05 (Gateway)

1, Gateway concept           Emergence: we know that a large system is often divided into many micro services when it is designed. So how can a client call so many microservices? The client can directly send a request to the microservice. Each microservice has a public URL that can be directly mapped to a specific microse ...

Posted by mattwade on Mon, 04 Oct 2021 12:48:14 -0700

[gateway series] take you step by step to learn the practice of gateway routing rules

1. Prepare Microservice project Create a new springBoot project as a microservice. A simple demo is as follows: @RestController public class MemberController { @RequestMapping("/query-demo") public String queryDemo(String name) { return "https://blog.csdn.net/"+ name + "/article/details/120475609"; } } yml serve ...

Posted by shyonne2004 on Mon, 27 Sep 2021 05:04:52 -0700

The Autowired injection Service becomes the Mapper proxy of biaomidou

Problem overview A Springboot project uses mybatis plus as the data layer framework Scan Mapper interface with @ MapperScan annotation @MapperScan("org.net5ijy.cloud.*") public class DemoApplication {} Use @ Autowired to inject Service in the Controller layer Service interface public interface LoginService {} Service implementation c ...

Posted by tiki on Mon, 27 Sep 2021 03:40:49 -0700

(40) spring cloud gateway integration of java Spring Cloud+Spring boot+mybatis enterprise rapid development architecture Eureka routing and forwarding

In this section, we first create a Gateway project, then implement the simplest forwarding function and integrate Eureka routing. Recommended source code of Honghu distributed Cloud Architecture Create Gateway project Create a Maven project of Spring Boot and increase the dependency of Spring Cloud Gateway. The code is as follows. <parent& ...

Posted by nick314 on Sat, 25 Sep 2021 18:34:28 -0700