winglang / wing

A programming language for the cloud ☁️ A unified programming model, combining infrastructure and runtime code into one language ⚡
https://winglang.io
Other
4.75k stars 187 forks source link

`bring momento;` library for Momento serverless cache #6524

Open Chriscbr opened 1 month ago

Chriscbr commented 1 month ago

Use Case

Momento provides a serverless cache service that's relatively easy to set up and doesn't require an AWS account. There are Terraform bindings that should make it easy to model the infrastructure in a Wing class.

Proposed Solution

bring cloud;
bring moment;

let cache = new momento.Cache();

new cloud.Function(inflight() => {
  cache.set("key", "value");
  cache.get("key");
  // etc.
});

Implementation Notes

Implementing the library will be simplified if we can easily generate Wing bindings for arbitrary Terraform modules (https://github.com/winglang/wing/issues/4922)

Component

Libraries

Community Notes

eladb commented 1 month ago

Wow, I didn't know that they have Terraform bindings. Cool!