From c7e13188fad12bfb590fc0648ace949dcae0abe5 Mon Sep 17 00:00:00 2001 From: Abhishek Kumar Date: Tue, 21 Jul 2015 14:26:17 -0700 Subject: Update naming.md Fixed code formatting issues. --- doc/naming.md | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'doc/naming.md') diff --git a/doc/naming.md b/doc/naming.md index 9294529ea5..5ad7e6622e 100644 --- a/doc/naming.md +++ b/doc/naming.md @@ -8,7 +8,8 @@ gRPC supports DNS as the default name-system. A number of alternative name-syste A fully qualified, self contained name used for gRPC channel construction uses the syntax: -```scheme://authority/endpoint_name +``` +scheme://authority/endpoint_name ``` Here, scheme indicates the name-system to be used. Example schemes to be supported include: @@ -31,11 +32,12 @@ Resolvers should be able to contact the authority and get a resolution that they ## Zookeeper -Apache [ZooKeeper](https://zookeeper.apache.org/) is a popular solution for building name-systems. Curator is a service discovery system built on to of ZooKeeper. We propose to organize names hierarchically as `/path/service/instance similar` to Apache Curator. +Apache [ZooKeeper](https://zookeeper.apache.org/) is a popular solution for building name-systems. Curator is a service discovery system built on to of ZooKeeper. We propose to organize names hierarchically as `/path/service/instance` similar to Apache Curator. A fully-qualified ZooKeeper name used to construct a gRPC channel will look as follows: -```zookeeper://host:port/path/service/instance +``` +zookeeper://host:port/path/service/instance ``` Here `zookeeper` is the scheme identifying the name-system. `host:port` identifies an authoritative name-server for this scheme (i.e., a Zookeeper server). The host can be an IP address or a DNS name. Finally `/path/service/instance` is the Zookeeper name to be resolved. -- cgit v1.2.3