Comments (4)
I started working on this a bit and it seems that the background functions are (about to become) legacy, in favor of CloudEvents
, which are supposedly designed to be cloud-platform-independent. It seems the Cloud Functions documentation hasn't been updated with this, and it's still not entirely clear to me how to deploy cloud-event-based functions.
In any case, it seems we may want to build our own Functions Framework according to the contract laid out here:
https://github.com/GoogleCloudPlatform/functions-framework#functions-framework-contract
IMO this is actually a lot more interesting, since it describes something lower-level (i.e., listening on ports rather than being handed pre-digested events) and actually might be portable beyond the Google Cloud Platform. So this gives us a lot more control over how we do things, and makes them much easier to test without requiring to emulate specific cloud environments.
from feral.
For performance, efficiency and correctness reasons, the framework must be able to handle multiple concurrent invocations of the developer's function.
This is very interesting 🤓
from feral.
Superseded by #132.
from feral.
Well, I suppose this is worth keeping open actually. At the moment I don't think you can deploy a custom Functions Framework to Cloud Functions (you have to buy into one of their frameworks) and Cloud Functions is a different product with a different pricing model etc. than e.g. Cloud Run or another service where you can deploy an custom Functions Framework.
from feral.
Related Issues (20)
- v0.1.0 HOT 4
- Lambda output empty with 1.0.0-M1 HOT 5
- natchez integration and lambda init HOT 3
- ES Module support HOT 19
- Giter8 Template(s) HOT 5
- Scala Native support HOT 1
- Idea: Simple and scalable mechanism for bundling lambdas into services HOT 8
- Make Feral more amenable to SnapStart optimization? HOT 1
- Should the return type of init really be a Resource? HOT 1
- Why not Dispatcher? HOT 4
- Add feral-otel4s integration
- Integrate feral-lambda with otel4s HOT 4
- Document how to deploy with scala-cli HOT 1
- feral example code Http4sLambda.scala does not work for JVM in AWS Lambda HOT 4
- Deprecate KinesisStreamEvent
- Can't print logs using `IO.println` HOT 2
- Support Vercel HOT 2
- 0.2.x -> 0.3.x scalafixes
- MiMa Configuration HOT 2
- Integrate http4s WebSocket app with AWS Lambda API Gateway
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from feral.