Redis

GitbookBackend2020-12-29


🪕Hydra


hydramicroservice

📑 Hydra and Redis


Hydra leverages the awesome power of Redis to address the following microservice concerns:

  • presence and health monitoring 就是监控微服务是否正常运行?
  • service discovery 就是通过服务名而不是IP端口来 discover 微服务。
  • route discovery Routing both HTTP and messages such as Web Socket or PubSub.
  • 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


  1. Microservices are run as separate processes (2)
  2. Consequently, you must setup a separate project/repo for each service & configure a client for any process that would like to use the service
  3. You may choose one of several transports for the clients and servers to communicate over.