[BLOCKED] [Search] Caching for VA Search API #18156
Labels
Blocked
Issues that are blocked on factors other than blocking issues.
ghp-drafts
Needs refining
Issue status
Public Websites
Scrum team in the Sitewide crew
Ruby
sitewide
VA.gov frontend
CMS team practice area
VA.gov Search
Search.gov integration, owned by Public Websites team
Description
This is a clone of the same ticket for the Forms API, except in this case, for Search: #15359
We only need to SPIKE once, so if we prefer to focus on Search first or Forms first, doesn't matter. But the solution would need to be implemented separately for each API.
Background
The VA Search API gets heavy traffic spikes at times, which has caused some issues with the API returning 5xx responses, causing Veterans the inability to access their necessary Search.
[todo: link to issues, slack threads, etc].
User story
AS A Veteran or other user of Search available via VA.gov
I WANT to have access to the Search I need without encountering any errors
SO THAT I can complete them without frustration and get the services/aid/etc. that I need
Engineering notes / background
With no caching in place, each and every request to the VA Search API is routed through Lighthouse and ultimately to the postgres database.
In order to understand what our caching options are, we need to explore the path a request takes from browser to Lighthouse. We may find that implementing a Redis cache at the /v0/search endpoint could greatly impact the Veteran performance. Or, we may find that the path to the /v0/search endpoint takes won't allow for an in-memory cache. In that case, perhaps there is an HTTP proxy cache we could leverage.
Analytics considerations
Quality / testing notes
Acceptance criteria
The text was updated successfully, but these errors were encountered: