[Translate] How to use Consul to store configurations in ASP.
Original: USING CONSUL for storing the CONFIGURATION in ASP.Author: Nathanael
[Translator Note: Because of anxious to share to everyone, so this article translation is very hasty, some inaccurate place also hope understanding]
The Consul from Hashicorp is a tool for distributed architectures that can
The Spring Cloud Consul project is a service governance implementation for consul. Consul is a distributed, highly available system that contains multiple components, but as a whole, a tool for providing service discovery and service configuration for our infrastructure in the microservices architecture. It contains the following features:
Service discov
The Spring Cloud Consul project is a service governance implementation for consul. Consul is a distributed, highly available system that contains multiple components, but as a whole, a tool for providing service discovery and service configuration for our infrastructure in the microservices architecture. It contains the following features:Service discoveryHealth
nodes
Distributed locks (distributed exclusive lock)
How to synchronize in a distributed service with locks
Messaging and Notification Services (message queue and notification)
How to deliver messages in a distributed service that proactively responds to events in the form of notificationsConsulConsul is a distributed service coordination management tool developed with Go, which provides features such as service discovery, health check, Key/value storage, and support
Consul specific installation and Operation View Blog's Consul series.First, start consul(1 server+1 client, convenience, client using this machine): View: http://www.cnblogs.com/java-zhao/p/5375132.html1. Turn on the virtual machine and switch to the node configured in Vagrantfile
Vagrant up
Vagrant SSH n110
2. Start Server (n110)
This is a creation in
Article, where the information may have evolved or changed.
The complete code of this article is shown in https://github.com/changjixiong/goNotes/tree/master/consulnotes, if the link is not shown in the text link is sent to be killed, please search to find the original reading.
What is Consul?
"Consul is a distributed, highly available, Datacenter-aware, service discovery and configura
1, vagrantTo simulate cluster effects, use vagrant.1.1, first download vagrantHttps://www.vagrantup.com/downloads.htmlDescription: Browser download may be slow, can be downloaded through thunder.1.2. After download, install vagrantMac, the next step in the end can.Note: Although vagrant needs to rely on VirtualBox, we do not need to install it beforehand because VirtualBox is installed automatically when the vagrant is installed.1.3. Open terminal, start vagrant1.3.1, Initialize:Description: The
First, the principle of consulFeatures of the consul• Service Discovery• Health Checks• Multi-Data centerKey/value StorageConsul usage ScenariosRegistration and configuration sharing for Docker instancesRegistration and configuration sharing for CoreOS instancesAdvantages of Consul· using the Raft algorithm to ensure consistency is more straightforward than a complex Paxos algorithm. In comparison, Zookeepe
Description
This paper introduces a service discovery and configuration sharing software, briefly introduces the principle and use of consul, a small text, hoping to attract interested children's shoes together to explore research. What's consul?
Consul is a service software that supports distributed and highly available service discovery and configuration shari
The Spring Cloud Consul project is a service governance implementation for consul. Consul is a distributed, highly available system that contains multiple components, but as a whole, a tool for providing service discovery and service configuration for our infrastructure in the microservices architecture. It contains the following features:
Service discov
Brief introductionBefore reading this article I think you should have a basic or vague understanding of the microservices architectureConsul is a service management software, it actually has many components, including service discovery configuration shared key value pair storage etc.This paper mainly explains the discovery of Service registration service of consul and the configuration of cluster.Resources:79462530Https://www.cnblogs.com/shanyou/p/628
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 Registration and Discovery
Service Invocation: Client Direct Connect Server call se
With the emergence of micro-services, the management of services is extremely important. All know that microservices are "split", the bloated single-block application, split into a number of lightweight services, each service can be in a short period of time to reconstruct, iterate, delivery. With the increase in the number of micro-services, due to quantitative quality, resulting in a new problem one of which is the management of services. With the growth of micro-services in the business, it i
Purpose of implementation:Because the actual working node in Mesos is slave, the task (container) that the framework marathon initiates is executed on a random slave, so slave is started on each registrator to discover the containers on this machine. It automatically registers the container on the current host to consul. But consul find a salve to start the line, it will be selected as leader, the other sla
Last mention, Eureka 2.x official Stop update, you can use Consul to replace, if the use of consul, in fact, config server does not need to continue to use, consul with KV storage, can completely replace the job of config server.The steps are as follows:First, add a jar dependency compile ' org.springframework.cloud:spring-cloud-starter-config ' compile ' o
The Spring Cloud Consul project is a service governance implementation for consul. Consul is a distributed, highly available system that contains multiple components, but as a whole, a tool for providing service discovery and service configuration for our infrastructure in the microservices architecture. It contains the following features:Service discoveryHealth
The Spring Cloud Consul project is a service governance implementation for consul. Consul is a distributed, highly available system that contains multiple components, but as a whole, a tool for providing service discovery and service configuration for our infrastructure in the microservices architecture. It contains the following features:
Service discov
The Spring Cloud Consul project is a service governance implementation for consul. Consul is a distributed, highly available system that contains multiple components, but as a whole, a tool for providing service discovery and service configuration for our infrastructure in the microservices architecture. It contains the following features:
Service discov
The Spring Cloud Consul project is a service governance implementation for consul. Consul is a distributed, highly available system that contains multiple components, but as a whole, a tool for providing service discovery and service configuration for our infrastructure in the microservices architecture. It contains the following features:Service discoveryHealth
The Spring Cloud Consul project is a service governance implementation for consul. Consul is a distributed, highly available system that contains multiple components, but as a whole, a tool for providing service discovery and service configuration for our infrastructure in the microservices architecture. It contains the following features:Service discoveryHealth
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.