Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/desmondsanctity/neon-hyperdrive
Using Hono.js, Neon Postgres with Cloudflare Hyperdrive for faster queries
https://github.com/desmondsanctity/neon-hyperdrive
cloudflare-workers edge-computing honojs postgres serverless
Last synced: about 2 months ago
JSON representation
Using Hono.js, Neon Postgres with Cloudflare Hyperdrive for faster queries
- Host: GitHub
- URL: https://github.com/desmondsanctity/neon-hyperdrive
- Owner: DesmondSanctity
- License: mit
- Created: 2023-11-18T00:51:00.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-03-16T20:48:23.000Z (11 months ago)
- Last Synced: 2024-11-02T14:33:55.476Z (3 months ago)
- Topics: cloudflare-workers, edge-computing, honojs, postgres, serverless
- Language: JavaScript
- Homepage:
- Size: 151 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# neon-hyperdrive
Using Hono.js, Neon Postgres with Cloudflare Hyperdrive for faster queriesThis is a demo project that benchmarked for speed between two applications.
- The first one is a simple [User API](/neon/) application that uses [Hono.js](https://hono.dev/) and [Cloudflare Hyperdrive](https://developers.cloudflare.com/hyperdrive/) bindings to connect to a Neon Postgres database. Hyperdrive is a dev tool by Cloudflare to make database queries faster by distributing them global among their servers.
- The second one is a simple [User API](/native-pg/) application that uses Express.js and [Sequelize ORM](https://sequelize.org/) to connect to a Neon Postgres database.
Each directory has its own instruction for setup and running the benchmark. I used [Postman Web](https://go.postman.co/home) to run the requests.
Note: The benchmark is against non-mutating queries like GET. Other mutating queries like INSERT, PUT and CREATE are not considered in this benchmark as Hyperdrive does not cache them.
You can watch a demo [here](https://www.loom.com/share/ac9ac7b1b68d4fd3afa0c78896463e35?sid=2dc9cbcb-aa69-41c8-8a78-d21d24523344) to understand the whole thing.