Skip to content
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

Cache - help or insights #301

Open
jrsarath opened this issue Jun 30, 2024 · 0 comments
Open

Cache - help or insights #301

jrsarath opened this issue Jun 30, 2024 · 0 comments

Comments

@jrsarath
Copy link

jrsarath commented Jun 30, 2024

So i been running few tests with serverless-http
In aws I'm using API Gateway v1 - Rest api with lambda
now when i enable caching on API Gateway, it behaves really weirdly
So for instance, here are two paths:

  1. base_path/api/categories
  2. base_path/api/categories/category_id

so without caching all is well, working as expected
but when i enable cache, this happens

  1. base_path/api/categories -> returns categories list
  2. base_path/api/categories/category_id -> returns category
  3. base_path/api/categories -> returns the category which was requested on earlier stage

sometimes its even vice-versa

So im not sure where to go from here, TTL is set to 300
api gateway config is
/categories/{proxy+} -> ANY -> Lambda + serverless-http

any kind of guidance, insights will be helpfull

@jrsarath jrsarath changed the title Cache - help or thoughts Cache - help or insights Jun 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant