Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

thunderclap database #14

Closed
ansarizafar opened this issue Nov 20, 2021 · 5 comments
Closed

thunderclap database #14

ansarizafar opened this issue Nov 20, 2021 · 5 comments

Comments

@ansarizafar
Copy link

@lukeed Why not use thunderclap(A database on top of Workers KV) for this project.

https://github.com/anywhichway/thunderclap

@lukeed
Copy link
Contributor

lukeed commented Nov 20, 2021

Hey, thanks for the suggestion, but the purpose of this project (and for using KV specifically) is to show people how to use the native tech and the demonstrate the raw data organization. That's a lot harder to follow & understand when everything is living behind a bunch of abstraction.

I'm sure the library is great! But this would be like trying to teach someone how the DOM works by teaching them React or Svelte first. Those are tools that facilitate the DOM operations, but if thats all a user knows, they still don't know what's going on underneath.

@lukeed lukeed closed this as completed Nov 20, 2021
@ansarizafar
Copy link
Author

ansarizafar commented Nov 20, 2021

This project is already using a third party web framework(Worktop) to simplify code. KV requires lots of boilerplate code in each project If we want to use it to replace our traditional database, which is against the goal of cloudflare of making life easy for the developers.

Cloudflare is a complete platform, the only missing piece is a native database. The purpose of this suggestion is that we should have an abstraction layer like thunderclap on top of KV or durable storage to avoid repetitive code in each project and that can easily be used as a complete database.

I request you to please check thunderclap repo when you get time. The project is not maintained by the author anymore but he is willing to change the licence.

Anyways,I am a great fan of @lukeed work and I respect your opinion.

@lukeed
Copy link
Contributor

lukeed commented Nov 20, 2021

Worktop is only used for the routing, which is an expectation for any application. There are a collection of other utilities used throughout too, but it's (at most) 100 lines of worktop code used by this project. Very very minimal and still easy to follow

@NaNorNull
Copy link

NaNorNull commented Nov 20, 2021 via email

@NaNorNull
Copy link

NaNorNull commented Nov 22, 2021 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants