Skip to content

A wrapper script to make Meilisearch operations synchronous for hosting on AWS Lambda.

Notifications You must be signed in to change notification settings

alchemaxinc/meilisearch-lambda-wrapper

Repository files navigation

Meilisearch Lambda Wrapper

Wrapping the asynchronous Meilisearch API to run on AWS Lambda with EFS storage.

Architecture Diagram

The Problem

Meilisearch is mainly asynchronous, and is designed to run on a server that is always on.

To experiment with cost optimizations, we would like to run it on a Lambda function, which is ephemeral and may be shut down at any time, backed by EFS for perpetual storage of the graph data itself.

The solution

This project provides a wrapper around Meilisearch that allows it to run on an EFS-linked Lambda function, by wrapping the asynchronous calls in a wrapper that waits for the operations to complete before returning.

Find an example Terraform setup for AWS Lambda + EFS in the docs/ folder.

Does it work?

It works on my machine 🤷‍♂️. Not entirely sure about multiple concurrent requests. This is a proof of concept. Contributions are welcome!

About

A wrapper script to make Meilisearch operations synchronous for hosting on AWS Lambda.

Topics

Resources

Contributing

Stars

Watchers

Forks

Contributors 4

  •  
  •  
  •  
  •