You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+38-7Lines changed: 38 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -32,7 +32,7 @@ It provides:
32
32
-**Integrated CircuitBreaker** - A fast [circuitbreaker](https://martinfowler.com/bliki/CircuitBreaker.html) to fast fail your responses when your API is having problems to work. It support custom handlers for events like "open" or "close" circuit.
33
33
- Real Time **Monitoring and Analytics** -
34
34
- Collect statistics about any access to your APIs. Capture any event, like a cache hit on a cache entrance, a circuitbreaker open circuit or an authentication attempt.
35
-
- A very flexible and powerfull log system, that can be integrated with any service like logstash, loggly or new relic.
35
+
- A very flexible and powerfull log system, that can be integrated with any service like logstash, timescale, loggly or new relic.
36
36
-**Easy Administration** - The gateway can be configured remotelly. And no restart is needed. Any API configuration can be "hot" changed and all configurations are propagated to other tree-gateway cluster nodes with no pain. The gateway can be configured through:
37
37
- Admin API - A REST API that can be invoked through HTTP;
38
38
- SDK - A Node JS SDK that can be used to configure the Gateway (or a cluster of gateways) programmatically;
Then map your first API. Just create an YML file (my-api.yaml):
67
+
68
+
```yaml
69
+
---
70
+
name: Test
71
+
version: 1.0.0
72
+
path: "/test"
73
+
proxy:
74
+
target:
75
+
host: http://httpbin.org
76
+
timeout: five seconds
77
+
```
78
+
79
+
And use the Tree Gateway CLI to configure it into the gateway:
80
+
81
+
```sh
82
+
treeGatewayConfig apis --add ./my-api.yaml
83
+
```
84
+
85
+
And its done. You can test it accessing in your browser: `http://localhost:8000/test/get`
86
+
87
+
88
+
## Gateway Configuration Reference
53
89
54
90
Take a better look into Tree Gateway by checking out the project and working with it guided by our [Docs](https://github.com/Leanty/tree-gateway/wiki).
0 commit comments