bufke

joined 10 months ago
 

Django VTasks is a faster and asyncio-friendly django.tasks extension supporting ORM and valkey/redis backends. Scheduler, unique, batch, and prioritize tasks embedded in your ASGI app or as a standalone worker.

4x faster than celery. I made this because I wanted a more ergonomic and faster task framework for GlitchTip.

 

Announcing a project I've been working on. django-vcache is an asyncio-friendly and fast Django cache backend for Valkey/Redis. Uses the Rust redis crate and a Python bridge to achieve high performance. Let me know what questions you have about it.

[โ€“] bufke@lemmy.today 0 points 3 months ago* (last edited 3 months ago)

It can yes, but you may also run it as a separate process via a manage.py command. The scheduler will also work in either set up, and locks itself to running just once. So it's safe to scale any way want.

 

I built django-vtasks to replace Celery (task queue) in my open source project, GlitchTip. I wanted something with an asyncio-first approach that supports Valkey and Postgres backends. Sync tasks run in threads. We don't support every Celery broker and feature, but I think we have a good feature set and we outperform Celery in benchmarks. Being able to run my_task.aenqueue() is friendlier than doing this in Celery from an async view. It allows for a true asyncio valkey call, not sync_to_async. I found django-tasks not performant enough, as I need high concurrency. (As I understand, Django Tasks is modeled off of that project, so thank you to django-tasks folks). If this sounds useful, give it a try. Or better yet, submit a bug report or merge request.

[โ€“] bufke@lemmy.today 1 points 6 months ago

Thanks, I updated the post. It's so easy to forget this.

 

GlitchTip is an open source error and uptime monitoring tool. We added experimental support for Postgres-only mode - no valkey/redis needed. We have an all-in-one script (also experimental) to embed celery and web as one process. Together, this gets the memory requirements quite low. It's a core goal of mine to ensure GlitchTip is as easy to host as possible. Report any issues. I'd love to know any feature requests related to self-hosting too.

[โ€“] bufke@lemmy.today 2 points 7 months ago

The PC version with ephinea private server is the most popular way to play currently. Runs well on steam deck. I had to fiddle with settings a bit. Crashes on some resolutions. It's still fun today.

[โ€“] bufke@lemmy.today 8 points 8 months ago (6 children)

Tax carbon, by raising gas tax. Let the market figure out the details. This lets the market optimize for efficiency instead of optimize towards defeating the entire point of regulation.