mirror of
https://github.com/kevin-DL/services.git
synced 2026-01-23 15:51:24 +00:00
One
This commit is contained in:
55
blog/search/README.md
Normal file
55
blog/search/README.md
Normal file
@@ -0,0 +1,55 @@
|
||||
# Search Service
|
||||
|
||||
This is the Search service
|
||||
|
||||
Generated with
|
||||
|
||||
```
|
||||
micro new --namespace=go.micro --type=service search
|
||||
```
|
||||
|
||||
## Getting Started
|
||||
|
||||
- [Configuration](#configuration)
|
||||
- [Dependencies](#dependencies)
|
||||
- [Usage](#usage)
|
||||
|
||||
## Configuration
|
||||
|
||||
- FQDN: go.micro.service.search
|
||||
- Type: service
|
||||
- Alias: search
|
||||
|
||||
## Dependencies
|
||||
|
||||
Micro services depend on service discovery. The default is multicast DNS, a zeroconf system.
|
||||
|
||||
In the event you need a resilient multi-host setup we recommend etcd.
|
||||
|
||||
```
|
||||
# install etcd
|
||||
brew install etcd
|
||||
|
||||
# run etcd
|
||||
etcd
|
||||
```
|
||||
|
||||
## Usage
|
||||
|
||||
A Makefile is included for convenience
|
||||
|
||||
Build the binary
|
||||
|
||||
```
|
||||
make build
|
||||
```
|
||||
|
||||
Run the service
|
||||
```
|
||||
./search-service
|
||||
```
|
||||
|
||||
Build a docker image
|
||||
```
|
||||
make docker
|
||||
```
|
||||
Reference in New Issue
Block a user