zenflow / composite-service-http-gateway Goto Github PK
View Code? Open in Web Editor NEWConfigurable http gateway service for use with composite-service
Configurable http gateway service for use with composite-service
When the http gateway receives a signal to shut down,
if should finish fulfilling any pending requests,
so that we aren't left with any incomplete "transactions",
but it should stop accepting any new requests,
so that it will actually be able to finish up and exit.
Is it possible to stop listening on the port without ending the active connections over that port?
If not, how should the gateway respond to new requests that are received after the shutdown signal? 500 status code?
Currently the configuration passed to configureHttpGateway()
is not validated in any way.
It should have some validation; it doesn't need to be as robust as the validation for CompositeServiceConfig
.
Instead of providing an TCP URL for a proxy target
, you would be able to provide a Unix domain socket URL like unix:/path/to/socket.sock
. This would come with performance benefits, but I'm not too familiar with how HTTP over Unix domain sockets works.
Add HttpGatewayConfig.openBrowser: boolean
defaulting to false
. (Or see what other libraries call this option)
It might make sense to have the server listen on edit: default host is now localhost
instead of 0.0.0.0
, since we can visit http://localhost:<port>/
in the browser (but not http://0.0.0.0:<port>/
).localhost
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.