Skip to content

API Gateway #12

@zenlex

Description

@zenlex

Given the plan to use distributed microservices to allow a broad variety of dev approaches for backing services to the site, build an API gateway that handles auth and session management and then delegates all other requests to the appropriate microservice.

Parameters:

  • Treat session persistence as a backing service.
  • Treat auth as a backing service.
  • Easily deployable in container(s) on limited resources.
  • Allow route registration via config file (toml, yaml, etc.) without further code changes.
  • Auth per route should be configurable, but enabled by default for a security first bias.
  • Fast / minimal - should just:
    • auth (only if required by route)
    • add session data if authed
    • forward/reject request as appropriate

For future features, adding a microservice should 'only' require:

  • deploying the service somewhere accessible
  • registering the route to the microservice with the api gateway
  • pointing the frontend fetch at the new api gateway route

Replacing/Lift & Shifting an existing microservice this way should only require modifying the route definition in the gateway.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions