diff options
author | Abhishek Kumar <abhikumar@google.com> | 2015-07-21 14:26:17 -0700 |
---|---|---|
committer | Abhishek Kumar <abhikumar@google.com> | 2015-07-21 14:26:17 -0700 |
commit | c7e13188fad12bfb590fc0648ace949dcae0abe5 (patch) | |
tree | b36aa600d24a92d73a86f7354bf19fa4ace07619 /doc | |
parent | 2d8eeb416ba465c169ce763a0b46f2c7914deaed (diff) |
Update naming.md
Fixed code formatting issues.
Diffstat (limited to 'doc')
-rw-r--r-- | doc/naming.md | 8 |
1 files changed, 5 insertions, 3 deletions
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. |