Skip to main content

Architecture

Overviews

API scopes

There are 2 difference API scopes in the system, one for external facing (frontend, public facing), one for internal facing (service-2-services communication)

Public or External-Facing Scope

  • APIs openned to public through Gateway public IPs
  • Handles communication between the frontend and internal services.
  • Requires authentication, authorization, and security measures (using OAuth2 with Bearer authentication)
  • Highly secured access

Internal-Facing Scope

  • Facilitates communication between different backend services or components.
  • Used for service-to-service communication within the system.
  • User indentity is passed between services as raw values
  • Internal services communications via internal or VPN network
  • Less secured and doesn't have any protection

Internal access IPs (Production):

ServicePublic Access endpointInternal Access endpointAPI docNote
API gatewayhttps://api.namde.vnhttp://10.20.236.40:3000https://api.namde.vn/api-doc/API doc will be closed for security
Auth serviceNohttp://10.20.236.40:3100http://localhost:3100/api-doc
Payment serviceNohttp://10.20.236.40:3200http://localhost:3200/api-doc
DatabaseAccess endpointUsernamePassword
PostgresSQLhttp://10.20.236.163:543218kings.prod?
Mongohttp://10.20.236.163:2701718kings.prod?
Redishttp://10.20.236.163:6379no?