-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add ability to load triemux from Content Store #490
Commits on Nov 25, 2024
-
This struct and type contains the logic for routes contained previously in the Router API and be used to help choose which handler to use.
Configuration menu - View commit details
-
Copy full SHA for 408cfdb - Browse repository at this point
Copy the full SHA 408cfdbView commit details -
Used for interacting with content store's postgres db.
Configuration menu - View commit details
-
Copy full SHA for 51d0063 - Browse repository at this point
Copy the full SHA 51d0063View commit details -
Add function to load routes from content store
This implements the logic to query the content store and populate the triemux.
Configuration menu - View commit details
-
Copy full SHA for 8fa4bff - Browse repository at this point
Copy the full SHA 8fa4bffView commit details -
Add postgres connection pool to Router
This makes a connection pool to the database url specified with he env var CONTENT_STORE_DATABASE_URL.
Configuration menu - View commit details
-
Copy full SHA for 3aa3dce - Browse repository at this point
Copy the full SHA 3aa3dceView commit details -
Add CSMUX_SAMPLE_RATE to canary content store routing
This provides a simple feature flag to turn off routing using content store and allows us to canary a percentage of requests to use the content store mux. A value of 0.0 will switch off the feature entirely and prevent the Router from trying to create a connection pool.
Configuration menu - View commit details
-
Copy full SHA for 7dc4fd6 - Browse repository at this point
Copy the full SHA 7dc4fd6View commit details -
Add mux for routes loaded from content store
This uses that the CsMuxSampleRate to controller the percentage of requests served by the mux built using the content store data.
Configuration menu - View commit details
-
Copy full SHA for 28d369d - Browse repository at this point
Copy the full SHA 28d369dView commit details -
Add ability to reload routes content store
This adds a helper function to update csmux with a new version containing updated routes.
Configuration menu - View commit details
-
Copy full SHA for aa8d3fc - Browse repository at this point
Copy the full SHA aa8d3fcView commit details -
Configuration menu - View commit details
-
Copy full SHA for d29d0a1 - Browse repository at this point
Copy the full SHA d29d0a1View commit details -
Configuration menu - View commit details
-
Copy full SHA for d410d47 - Browse repository at this point
Copy the full SHA d410d47View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4d54e7a - Browse repository at this point
Copy the full SHA 4d54e7aView commit details -
Configuration menu - View commit details
-
Copy full SHA for da72317 - Browse repository at this point
Copy the full SHA da72317View commit details -
Configuration menu - View commit details
-
Copy full SHA for b7fc3c6 - Browse repository at this point
Copy the full SHA b7fc3c6View commit details -
Auto reload route from CS every minute
This is a fail safe in-case the listen/notify mechanism.
Configuration menu - View commit details
-
Copy full SHA for 0c38590 - Browse repository at this point
Copy the full SHA 0c38590View commit details
Commits on Dec 2, 2024
-
Use non-blocking send for route reloading
This ensures we don't reload more than we need to. If a notification already exists to reload, then we don't need to send another notification, as all updates will be captured in the next reload.
Configuration menu - View commit details
-
Copy full SHA for 1dc32f0 - Browse repository at this point
Copy the full SHA 1dc32f0View commit details -
Configuration menu - View commit details
-
Copy full SHA for e54299c - Browse repository at this point
Copy the full SHA e54299cView commit details -
Configuration menu - View commit details
-
Copy full SHA for bcec631 - Browse repository at this point
Copy the full SHA bcec631View commit details
Commits on Dec 4, 2024
-
This are stylistic changes and missing test for invalid json in the details column.
Configuration menu - View commit details
-
Copy full SHA for 2bd126d - Browse repository at this point
Copy the full SHA 2bd126dView commit details