|1 day ago||2 days ago|
|Apache License 2.0||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.
Databases in 2021: A Year in Review
7 projects | news.ycombinator.com | 29 Dec 2021
I am so confused. https://vitess.io/ I would check this page out and view it's "Who uses Vitess" section. Postgres is awesome if you are running a stand alone server with 300 users. But at scale mysql has all the solutions.
Vitess: Easy database deployment, clustering, and scaling!
1 project | dev.to | 22 Dec 2021
Transition to FAANG Interviews
1 project | reddit.com/r/ExperiencedDevs | 28 Nov 2021
GitHub pretty much did that. They use Vitess to scale MySQL.
LFX mentorship @ Vitess
1 project | dev.to | 18 Nov 2021
This summer I was fortunate enough to be selected as linux foundation mentee for Vitess which is a CNCF graduated project. According to vitess.io
PlanetScale Is Now GA
4 projects | news.ycombinator.com | 16 Nov 2021
I authored the original schema change tool, oak-online-alter-table https://shlomi-noach.github.io/openarkkit/oak-online-alter-t..., which is no longer supported, but thankfully I did invest some time in documenting how it works. Similarly, I co-designed and was the main author for gh-ost, https://github.com/github/gh-ost, as part of the database infrastructure team at GitHub. We developed gh-ost because the existing schema change tools could not cope with our particular workloads. Read this engineering blog: https://github.blog/2016-08-01-gh-ost-github-s-online-migrat... to get better sense of what gh-ost is and how it works. I in particular suggest reading these:
At PlanetScale I also integrated VReplication into the Online DDL flow. This comment is far too short to explain how VReplication works, but thankfully we again have some docs:
- https://vitess.io/docs/user-guides/schema-changes/ddl-strate... (and really see entire page, there's comparison between the different tools)
- or see this self tracking issue: https://github.com/vitessio/vitess/issues/8056#issue-8771509...
Not to leave you with only a bunch of reading material, I'll answer some questions here:
> Can you elaborate? How? Do they run on another servers? Or are they waiting on a queue change waiting to be applied? If they run on different servers, what they run there, since AFAIK the migration is only DDL, there's no data?
The way all schema change tools mentioned above work is by creating a shadow aka ghost table on the same primary server where your original table is located. By carefully both copying data from original table as well as tracking ongoing changes to the table (whether by utilizing triggers or by tailing the binary logs), and using different techniques to mitigate conflicts between the two, the tools populate the shadow table with up-to-date data from your original table.
This can take a long time, and requires an extra amount of space to accommodate the shadow table (both time and space are also required by "natural" ALTER TABLE implementations in DBs I'm aware of).
With non-trigger solutions, such as gh-ost and VReplication, the tooling have almost ocmplete control over the pace. Given load on the primary server or given increasing replication lag, they can choose to throttle or completely halt execution, to resume later on when load has subsided. We have used this technique specifically at GitHub to run the largest migrations on our busiest tables at any time of the week, including at peak traffic, and this has show to pose little to no impact to production. Again, these techniques are universally used today by almost all large scale MySQL players, including Facebook, Shopify, Slack, etc.
> who will throttle, the migration? But what is the migration? Let's use my example: a column type change requires a table rewrite. So the table rewrite will throttle, i.e. slow down? But where is this table rewrite running, on the main server (apparently not) or on a shadow server (apparently either since migrations have no data)? Actually you mention "when your production traffic gets too high". What is "high", can you quantify?
The tool (or Vitess if you will, or PlanetScale in our discussion) will throttle based on continuously collecting metrics. The single most important metric is replication lag, and we found that it predicts load more than any other matric, by far. We throttle at 1sec replication lag. A secondary metric is the number of concurrent executing threads on the primary; this is mroe improtant for pt-online-schema-change, but for gh-ost and VReplication, given their nature of single-thread writes, we found that the metric is not very important to throttle on. It is also trickier since the threshold to throttle at depends on your time of day, particular expected workload etc.
> We run customers that do dozens to thousands of transactions per second. Is this high enough?
The tooling are known to work well with these transaction rates. VReplication and gh-ost will add one more transaction at a time (well, two really, but 2nd one is book-keeping and so low volume that we can neglect it); the transactions are intentionally kept small so as to not overload the transaction log or the MVCC mechanism; rule of thumb is to only copy 100 rows at a time, so exepect possibly millions of sequential such small transaction on a billion row table.
> Will their migrations ever run, or will wait for very long periods of time, maybe forever?
Some times, if the load is so very high, migrations will throttle more. At other times, they will push as fast as they can while still keeping to low replication lag threshold. In my experience a gh-ost or vreplication migration is normally good to run even on the busiest times. If a database system is such that it _always_ has substantial replication lag, such that a migration cannot complete in a timely manner, then I'd say the database system is beyond its own capacity anyway, and should be optimized/sharded/whatever.
> How is this possible? Where the migration is running, then? A shadow table, shadow server... none?
So I already mentioned the ghost table. And then, SELECTs are non blocking on the original table.
> What's cut-over?
Cut-over is what we call the final step of the migration: flipping the tables. Specifically, moving away your original table, and renaming the ghost table in its place. This requires a metadata lock, and is the single most critical part of the schema migration, for any tooling involved. This is where something as to give. Tooling such as gh-ost and pt-online-schema-change acquire a metadata lock such that queries are blocked momentarily, until cut-over is complete. With very high load the app will feel it. With extremely high load the database may not be able to (or may not be configured to) accommodate so many blocked queries, and app will see rejections. For low volume load apps may not even notice.
I hope this helps. Obviously this comment cannot accommodate so much more, but hopefully the documentation links I provided are of help.
Encrypting Postgres Data at Rest in Kubernetes
2 projects | news.ycombinator.com | 31 Oct 2021
I'm hoping these kinds of policies continue to be phased out.
The Kubernetes world has changed a lot in the past few years in ways that make databases-in-k8s more appealing. Such as:
- Kubernetes "eating the world", meaning some teams may not even have good options for databases outside k8s (particularly onprem).
- Infrastructure-as-code being more prevalent. Since you already have to use k8s manifests for the rest of your app, adding another IaC tool to set up RDS may be undesirable.
- The rise of microservices, where companies may have hundreds of services that need their own separate data stores (many which don't see high enough traffic to justify the cost of a managed database service).
Obviously if the use-case is a few huge, highly-tuned, super-critical databases, managed database services are perfect for that. But IMO a blanket ban might be restricting adoption of some more modern development practices.
Comparing AWS's RDS and PlanetScale
1 project | news.ycombinator.com | 5 Oct 2021
This offering really isn't apples to apples. It would be better compared against AWS Aurora or https://vitess.io/
How to Deploy a Python Django Application using PlanetScale and Koyeb Serverless Platform
2 projects | dev.to | 10 Sep 2021
git clone https://github.com/vitessio/vitess.git ~/vitess cp -r ~/vitess/support/django/custom_db_backends ./
Which databases do you hate the least at scale?
1 project | reddit.com/r/devops | 6 Sep 2021
I can't say I loved it, but it worked extremely well. I haven't been working on that network in about 5 years. I hear they're finally out growing that setup and are looking to migrate to Vitess.
Moving away from MySQL, evaluating alternatives, picking a winner for our needs
1 project | news.ycombinator.com | 10 Aug 2021
Creating JWT token auth yourself - is it secure?
2 projects | reddit.com/r/csharp | 18 Jan 2022
Thought I would just mention https://supabase.com, the project is heavily inspired by firebase but allow for self hosting etc.
1 project | reddit.com/r/devopspro | 17 Jan 2022
A project to find hot o pen source projects
3 projects | reddit.com/r/github | 12 Jan 2022
For those interested in the code. It's an astro.build app that is powered by supabase and react components.
Appwrite 0.12 - A major milestone for the open source Firebase Alternative
2 projects | reddit.com/r/PHP | 7 Jan 2022
Look at their alternatives, Nhost and SupaBase, and they are nowhere as spammy.
Best database practice?
1 project | reddit.com/r/reactnative | 5 Jan 2022
https://supabase.com/ is great if you want to focus on the frontend.
In App Purchase's
1 project | reddit.com/r/godot | 4 Jan 2022
You need something like this https://github.com/supabase/supabase
The 10 Favorite Features of My Developer Portfolio Website
7 projects | dev.to | 4 Jan 2022
Built with Supabase and AWS Amplify Serverless Functions, readers of my articles can now react to the article with the clap emoji.
Is let/var necessary?
Any free database for new saas
5 projects | reddit.com/r/SaaS | 3 Jan 2022
Live fantasy draft functionality
Cloud databases like Firebase Firestore or the open source variant Supabase make this easy (they use WebSockets); when something changes in the database, all clients will immediatly be notified about the changes. Then your frontend would check who's turn it is etc. and update the UI accordingly. A reactive JS UI framework like React makes alot of sense for this.
What are some alternatives?
Appwrite - Appwrite is a secure end-to-end backend server for Web, Mobile, and Flutter developers that is packaged as a set of Docker containers for easy deployment 🚀
Hasura - Blazing fast, instant realtime GraphQL APIs on your DB with fine grained access control, also trigger webhooks on database events.
tidb - TiDB is an open source distributed HTAP database compatible with the MySQL protocol
next-auth - Authentication for Next.js
cockroach - CockroachDB - the open source, cloud-native distributed SQL database.
citus - Distributed PostgreSQL as an extension
realtime - Listen to your to PostgreSQL database in realtime via websockets. Built with Elixir.
postgrest - REST API for any Postgres database
Directus - Open-Source Data Platform 🐰 — Directus wraps any SQL database with a real-time GraphQL+REST API and an intuitive app for non-technical users.
airbyte - Airbyte is an open-source EL(T) platform that helps you replicate your data in your warehouses, lakes and databases.