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

Default to SQLite rather than Postgres and Redis #69

Closed
mikestefanello opened this issue Jun 16, 2024 · 2 comments
Closed

Default to SQLite rather than Postgres and Redis #69

mikestefanello opened this issue Jun 16, 2024 · 2 comments

Comments

@mikestefanello
Copy link
Owner

When I started on this project, I wanted to make something that would get you up and running building a web app as fast and as easily as possible, providing you with practically everything you'd need. Including Postgres and Redis seemed like an easy choice but in reality, an overwhelming number of apps will not need (or want) these and there's nothing rapid about having heavy dependencies like that (plus needing to run docker, by default). It seems more logical to provide defaults that are faster, easier, and satisfy the greatest number of developers. If you happen to outgrow SQLite (and in-memory caches, etc), then upgrading to Postgres/Redis is very easy to do (and odds are if you're running at that scale you're not using a project like this one).

Current setup:

Proposed:

@mikestefanello
Copy link
Owner Author

Work will be done in this branch: https://github.com/mikestefanello/pagoda/tree/lite

For the cache, we'll use

  • https://github.com/maypok86/otter
  • eko/gocache will be removed. It's a nice library but the less dependencies the better. Plus, it seems like the cache tag implementation for in-memory caching is flawed so I wrote my own.

@mikestefanello
Copy link
Owner Author

Done: #72

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

1 participant