deno-caddy-cluster-reverse-proxy,适用于Deno的分布式微服务注册与发现服务器和客户端.
Attributes
Includes Deno configuration
Repository
Current version released
2 years ago
Dependencies
std
deno-caddy-cluster-reverse-proxy
deno-caddy-cluster-reverse-proxy
使用deno
,根据需要的服务子进程数量(默认为cpu
个数),找到任意空闲的端口,然后启动子进程开启服务进程集群,使用caddy
进行反向代理.适用于服务进程是单进程服务,比如说node
或者deno
.支持https
和http
.
serve_cluster_reverse_proxy
:启动集群反向代理服务
查看例子:
https://github.com/masx200/deno-caddy-cluster-reverse-proxy/blob/main/test.ts
https://github.com/masx200/deno-caddy-cluster-reverse-proxy/blob/main/hello-world-server.ts
https://github.com/masx200/deno-caddy-cluster-reverse-proxy/blob/main/handler.ts
https://github.com/masx200/deno-caddy-cluster-reverse-proxy/blob/main/main.ts