Redis
GitbookBackend2020-12-29
🪕Hydra
📑 Hydra and Redis
Hydra leverages the awesome power of Redis to address the following microservice concerns:
- presence and
healthmonitoring 就是监控微服务是否正常运行? service discovery就是通过服务名而不是IP和端口来 discover 微服务。route discoveryRouting bothHTTPandmessagessuch asWeb SocketorPubSub.inter-service messaging
【Building Light-weight Microservices using Redis】
🪕 TODO
用docker安装redis,这样可以移植。
🪕NestJS
- Built-in support for microservices & transport layers like TCP, gRPC, Redis, RabbitMQ
- TCP
- Redis, MQTT, NATS, RebbitMQ (Message Brokers)
- gRPC (Remote Procedure Call)
📑 Youtube
- Microservices are run as separate processes (2)
- Consequently, you must setup a separate project/repo for each
service& configure aclientfor any process that would like to use theservice - You may choose one of several transports for the clients and servers to communicate over.
