serverless
wsproxy
serverless | wsproxy | |
---|---|---|
2 | 1 | |
295 | 102 | |
13.6% | 0.0% | |
8.6 | 10.0 | |
7 days ago | over 1 year ago | |
TypeScript | Go | |
MIT License | Apache License 2.0 |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
serverless
-
HTTP vs. WebSockets: Which one is the fastest for Postgres queries at the Edg
Here is the actual package used [1]. I thought it would have been similar to serverless-pg[2] with initiation outside the handler as with the node implementation. Any insights into how they achieve connection caching (similar to pooling?) on the edge?
[1]: https://github.com/neondatabase/serverless
- Storage on Vercel
wsproxy
-
HTTP vs. WebSockets: Which one is the fastest for Postgres queries at the Edg
This sounds cool (it's not something we've built at Neon).
In case it's useful, I can clarify:
* Every Neon database is accessible over an ordinary TCP Postgres connection (as well as WebSockets and http).
* Our JavaScript serverless driver is based on node-postgres and is a drop-in replacement for it. So for JS, no rewriting is needed.
Assuming that doesn't help, do you specifically need http (rather than WebSockets), and a proxy that speaks the pg protocol?
If not, the simplest thing might be to (1) use Neon, or run a WebSocket proxy next to your own database (e.g. https://github.com/neondatabase/wsproxy); and (2) find/write a similar WebSocket proxy, but in reverse — i.e. one that listens out for TCP/socket connections and tunnels them over WebSockets — to run next to the agents.
What are some alternatives?
neon-vercel-zapatos - Example use of Neon serverless driver on Vercel Edge Functions with Zapatos
serverless-pg - A package for managing PostgreSQL connections at SERVERLESS scale
neon - Neon: Serverless Postgres. We separated storage and compute to offer autoscaling, branching, and bottomless storage.
storage - Vercel Postgres, KV, Blob, and Edge Config
cloudflare-for-speed-and-security - Scale faster and save big with the global edge cloud platform - https://kerkour.com/cloudflare-for-speed-and-security
relay-starter-kit - 💥 Monorepo template (seed project) pre-configured with GraphQL API, PostgreSQL, React, and Joy UI. [Moved to: https://github.com/kriasoft/graphql-starter-kit]
node-starter-kit - Node.js / GraphQL project template pre-configured with TypeScript, PostgreSQL, login flow, transactional emails, unit tests, CI/CD workflow.
cloudflare-contact-us-worker - Contact Page to send E-mails. Sends requests to Cloudflare Worker. Uses Google Invisible Captcha to reduce spam, Sentry to log errors & SendGrid to send e-mails. TypeScript & a few simple Jest tests. GitHub Workflow is used for automated deployment.
postgres - Postgres.js - The Fastest full featured PostgreSQL client for Node.js, Deno, Bun and CloudFlare
graphql-starter-kit - 💥 Yarn v2 based monorepo template (seed project) pre-configured with GraphQL API, PostgreSQL, React, Relay, and Material UI. [Moved to: https://github.com/kriasoft/graphql-starter]