Skip to content

Conversation

jq1836
Copy link

@jq1836 jq1836 commented Oct 14, 2024

Resolves #14, #19, #20, #24

Overview

Previously, our question service was exposed, allowing anyone to use the endpoints. The API gateway provides automatic authentication, as well as provides ingress capabilities.

Currently does not provide load balancing capabilities. Intention is for load balancing to be done by k8s.

Testing instructions

  1. Add in API_GATEWAY_PORT value to .env. Note that whatever port you set here will determine how you access the pages.
  2. docker compose up --build.
  3. Go to localhost:$API_GATEWAY_PORT to access frontend.
  4. Play around with backend endpoints through frontend.
  5. Play around with backend endpoints through preferred requester, port is always $API_GATEWAY_PORT.

@jq1836 jq1836 self-assigned this Oct 14, 2024
@jq1836
Copy link
Author

jq1836 commented Oct 14, 2024

To review after PR #166

@jq1836 jq1836 changed the base branch from main to add-milestone-d2-tag October 14, 2024 09:28
@jq1836 jq1836 changed the base branch from add-milestone-d2-tag to main October 14, 2024 09:28
Copy link

@SelwynAng SelwynAng left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM overall, aside from some comments.

Also, should we set the API gateway port to some fixed value instead of making it flexible? Tested with 8080 and 2000, those port numbers don't allow the frontend to communicate with the backend services. Port numbers like 80 and 1234 work though.

Copy link

@wr1159 wr1159 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM - pz

@jq1836 jq1836 mentioned this pull request Oct 28, 2024
1 task
Copy link

@SelwynAng SelwynAng left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@jq1836 jq1836 merged commit 8e85ae9 into main Nov 5, 2024
2 checks passed
@jq1836 jq1836 deleted the enhancement/api-gateway branch November 5, 2024 17:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

4 participants