Microservice architecture | 7.1 security authentication based on OAuth2

preface <Spring Microservices in Action> Principle and practice of Spring Cloud Alibaba microservice "Spring cloud framework development tutorial in Silicon Valley of station B" Zhou Yang OAuth2 is a token based security authentication and authorization framework. It allows users to authenticate using third-party authent ...

Added by Timewell on Wed, 02 Feb 2022 15:27:18 +0200

Microservice architecture | 5.1 uses Netflix Hystrix circuit breaker

preface reference material: <Spring Microservices in Action> Principle and practice of Spring Cloud Alibaba microservice "Spring cloud framework development tutorial in Silicon Valley of station B" Zhou Yang Hystrix is a delay and disaster recovery library, which aims to isolate the access points of remote systems, services a ...

Added by dzelenika on Wed, 02 Feb 2022 13:03:08 +0200

Micro service series: Sentinel of Spring Cloud Alibaba detailed introduction

Micro service series: service gateway Spring Cloud Gateway integrated Sentinel current limiting In the previous study of Spring Cloud Gateway, we have used Sentinel for current limiting, but we have not learned Sentinel in detail, so we need to supplement this knowledge today. Don't say much, start today's study. Sentinel introduction Se ...

Added by ploppy on Mon, 31 Jan 2022 11:36:06 +0200

Chapter III Alibaba cloud core component service governance Nacos

1. What is the registry of micro services Microservice architecture diagram What is a registry (service governance) Service registration: the service provider reports its own network information to the registration center when it is started Service discovery: the service consumer reports its own network information to the registration cent ...

Added by tomz0r on Mon, 31 Jan 2022 07:15:12 +0200

Why can the RestTemplate in the Spring Cloud LoadBalancer load balancing policy be annotated with @ LoadBalanced to access the service with the service name

Why can the RestTemplate in the Spring Cloud LoadBalancer load balancing policy be annotated with @ LoadBalanced to access the service with the service name     Why learn this? You don't want to pretend two more during the interview and force you to get two thousand yuan more? Robin load balancing analysis, please see my Robin load balancing ...

Added by suave4u on Mon, 31 Jan 2022 03:37:28 +0200

I. Eureka service registration and discovery

1.RestTemplate realizes remote call If a system is split, for example, an e-commerce system can be split into order module, user module and commodity module, which can query data from the order table, user table and commodity table in the database respectively, then when querying the order record according to the order id, the order needs to qu ...

Added by coderWil on Mon, 31 Jan 2022 02:53:52 +0200

Implementation of single sign on based on spring security oauth2 -- how are unauthenticated requests redirected to the login address (authentication process of spring security)?

1. Foreword   in the previous article Getting started examples and process analysis In the process of process analysis, when application A is accessed for the first time (without authentication)( http://localhost:8082/index )Will be redirected to the login of APP A http://localhost:8082/login Address (Get request). From the perspective of ...

Added by Helios on Sun, 30 Jan 2022 10:44:50 +0200

SpringCloud, Eureka, service registration, project call between services

preface This blog will introduce the establishment and simple use of Eureka registry of spring cloud, which is mainly divided into the following aspects:1. Overall structure of the project;2. Construction process and detailed explanation of each service;3. Simple call between Eureka services; 1, What is Eureka? Eureka is the registra ...

Added by b2k on Sat, 29 Jan 2022 03:58:09 +0200

Spring cloud (primary version) notes (most detailed) Mr. Zhou Yang

I Microservice architecture coding construction 1. Create parent project 2. Aggregate parent project name 3.Maven selected version Note: maven selects version 3.5 or above Remember: agreement > configuration > coding. Build the environment before coding 4. Character coding 5. Note validation activation 6. Select 8 for Jav ...

Added by TheIrishThug on Sat, 29 Jan 2022 03:17:39 +0200

Spring cloudalibaba integrates Gateway dynamic routing and Nacos service

Official git: https://github.com/spring-cloud/spring-cloud-gateway Spring Cloud Gateway is used to replace zuul1 X as a gateway component in the microservice architecture, zuul1 X is the earliest gateway component. Due to the use of single thread blocking link, there is a performance problem. Gateway is a responsive gateway service built on the ...

Added by mrgrinch12 on Fri, 28 Jan 2022 05:47:22 +0200