Outline:
? How to discover services in Kubernetes
? How to discover the services provided by pod
? How to use service discovery Services
? How to use the Kube-dns discovery service
? Kube-dns principle
? Composition
? Domain name format
? Configuration
Note: this share is based
A microservices architecture system, the different services will be called each other, such as an order service needs to fetch user data, you need to invoke user services, there are multiple User Service instances, Eureka load balanced to one of the service instances, and the previous chapter, We first use the Java version of the
Service Discovery with Apache Curator, discoverycurator
Introduction to Curator
Curator is a client tool for Zookeeper (people who do not know about Zookeeper can access ZooKeeper). It encapsulates connection processing between ZooKeeper client and zookeeper server and common operations on Zookeeper, provides abstract encapsulation of ZooKeeper application scenarios (recipe, such as the shared lock
Querying an instance of provider through the Service registry: Service acquisition
Client Load Balancing: Ribbon
Client cache: Local cache
Getting Started Demo sampleOnline demo a lot, for reference only.The simplest Springcloud tutorial in history | Second article: Service Consumers (Rest+ribbon)Eureka Advanced Eureka How to manage service
Spring Cloud Introduction Spring Cloud is a spring boot-based cloud application development tool that covers configuration management, service discovery, circuit breakers, intelligent routing, micro-agents, control buses, global locks, decision campaigns, Operations such as distributed sessions and cluster state management provide a simple way to develop.Spring Cloud contains multiple sub-projects (for many
Service Discovery System consul1. What is consul?
Is a service management software.
Supports distributed, highly available, service discovery, and configuration sharing in multiple data centers.
Consul supports health check and allows storage of key-value pairs.
Consistency
Editor's note "This is the fourth article on creating an app family using a microservices architecture." The first chapter introduces the model of MicroServices architecture and discusses the advantages and disadvantages of using microservices architecture. The second and third articles describe the communication mechanisms within the microservices architecture. In this article, we will explore issues related to service discovery.Why Use
Use of the Android network service discovery (NSD) Protocol
Android's Network Service Discovery Protocol (NSD) can be used to discover an application on a nearby device in a small network. This is very helpful for some social networks and multiplayer games.
Android NSD can be used in four ways:
1.Register a network
Discovery and consumption of servicesWith service centers and service providers, let's implement a service consumer:Service consumers mainly complete two tasks-service discovery and service
Service Discovery IntroductionIn Android Wifidirect Learning (a), a simple description of how to use Wifidirect for search-connect-transfer.The problem with this is that you will be searching all the nearby network devices that are in the Wifidirect search state, and these devices are not necessarily the one you want to connect to.The Android Wifidirect API provides a search method that searches only specif
Springcloud Service Registration and Discovery (Eureka) and springcloudeureka
Use Eureka for service governance
Role: Achieve service governance (Service Registration and discovery)
Introduction: Spring Cloud Eureka is a
In the microservices architecture, each small service is composed of a number of nodes, the addition of nodes to remove the failure to be transparent downstream, it is necessary to introduce a service automatic registration and discovery mechanism, and Consul provides a complete solution, and built-in support for GRPC and HTTP services
Overall architectureService
Service discovery is one of the key principles of micro-service architecture. Trying to configure each client or some form of convention can be very difficult and very fragile. Consul provides service discovery services through HTTP APIs and DNS. Spring Cloud Consul uses the
maintain and prone to problems.Therefore, in order to solve this service dependency, service registration and release came into being.
1.2 mechanism
Service registration and discovery are mainly divided into the following points.
Service Information Release
This
Service discovery mechanism Kubernetes provides two ways to discover the service:1. Environment Variables When the pod is running, Kubernetes writes the information for the service that existed before This method requires that the pod must be started after the service.
About Spring CloudSpring Cloud is a spring boot-based cloud application development tool for configuration management, service discovery, circuit breakers, intelligent routing, micro-agents, control buses, global locks, decision-making campaigns, Operations such as distributed sessions and cluster state management provide a simple way to develop.Spring Cloud contains multiple sub-projects (for many differen
ETCD is a highly available key-value storage system that is used primarily for shared configuration and service discovery. ETCD is developed and maintained by CoreOS and is inspired by ZooKeeper and Doozer, which is written in the go language and handles log replication through the raft consistency algorithm to ensure strong consistency. Raft is a new consistency algorithm from Stanford, suitable for the lo
This service is now used to be very small, and it is recommended that you use it manually, so that we can use it when we need to use it, If your computer discovers that this service corresponds to the Svchost.exe process using the CPU very much, can turn it off, but it is not recommended to permanently disable it to start, let's learn more about SSDP Discovery
This service is now used to be very small, and it is recommended that you use it manually, so that we can use it when we need to use it, If your computer discovers that this service corresponds to the Svchost.exe process using the CPU very much, can turn it off, but it is not recommended to permanently disable it to start, let's learn more about SSDP Discovery
About Spring CloudSpring Cloud is a spring boot-based cloud application development tool for configuration management, service discovery, circuit breakers, intelligent routing, micro-agents, control buses, global locks, decision-making campaigns, Operations such as distributed sessions and cluster state management provide a simple way to develop.Spring Cloud contains multiple sub-projects (for many differen
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.