Choosing a Search Backend in a Serverless Environment
What to put inside vs. outside the function in serverless, and how to hide swappable search behind a provider contract
- A search engine that needs to stay resident can't run inside a serverless function, but can be replaced by a pre-built in-memory index.
- Build artifacts read at runtime must be declared in bundle file tracing, or they go missing on cold start.