Comments (1)
This issue is a bit complicated due to how we handle HTTP parsing. The listener core is currently very TCP centric. The HTTP payload is not actually parsed until a worker begins to execute a sandbox for the first time. As such, the HTTP header is not parsed until a sandbox is scheduled for execution. In the example of the HTTP app, loading this URL triggers a second request for a favicon. As things currently work, this favicon request triggers the allocation of a second sandbox struct.
It seems that we may want to execute some HTTP parsing and routing logic on the listener core before we allocate a sandbox struct. We could then return 404s earlier if the route does not match a configured route. We could also potentially serve static assets off the listener core as well. There are some downsides here around contention and how to handle async reads and writes, so some additional thought is needed.
from sledge-serverless-framework.
Related Issues (20)
- Feature: Reference Instructions
- Feature: Sign Extension Operators
- Fix cache alignment issues for software interrupt tracking
- Serve Static Files
- Add custom persistence layer
- Document and validate that aWSM generated *.bc is a WASI module
- WASI Reactor Pattern
- http-parser is deprecated
- Rename the "local_completion_queue" to "local_sandbox_cleanup_queue"
- Bug: sandbox alloc doesn't actually allocate based on sandbox struct size HOT 2
- Make in Application Fails with fatal error: 'string.h' file not found HOT 2
- Memory footprint logging
- University of Sydney Honors Project HOT 8
- Perf_window Logic is not straightforward. Refactor needed.
- Implement wasi_snapshot_preview1 clock_res_get
- Setting up a development environment HOT 6
- Setting up a development environment HOT 17
- Problems Running Test Serverless Function HOT 5
- Uname fails when running install_deb.sh HOT 1
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 sledge-serverless-framework.