Skip to content

Microservice: Lưu ý trước khi code #19

@TranHoan-backend-dev

Description

@TranHoan-backend-dev

Lưu ý trước khi code

  1. Khi chạy eureka server thì làm các bước sau:
  • Vào edit configuration
  • Bật VM Options
  • Thêm dòng sau:
# port: 9001, 9002, 9003, áp dụng cho từng instance
-Dspring.profiles.active=instance-(số thứ tự)
  1. Cổng của APIGateway là 8080, service khác quy định cổng random bằng cách set cho server.port=0. Khi đó nếu muốn chạy nhiều instance của 1 service, chỉ cần copy configuration là được

  2. Tiền tố của api là v1/api/
    Ví dụ: account service: localhost:8081/v1/api/accounts/**
    notification service: localhost:8082/v1/api/notifications/**

  3. Các services sau sẽ được triển khai:

  • Paper service (paper, tag, citation)
  • Account service (user, role, team, institution)
  • Notification
  • Reading service (reading list, reading workflow, annotation)
  • Group service (collection)

Metadata

Metadata

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions