frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Show HN: FastWorker – Task queue for Python with no external dependencies

https://github.com/neul-labs/fastworker
1•ticktockten•2h ago
I built FastWorker after getting tired of deploying Celery + Redis for simple background tasks in FastAPI apps. Every time I needed to offload work from API requests, I had to manage 4-6 separate services. For small projects, this felt like overkill.

FastWorker is a brokerless task queue requiring only Python processes. No Redis, no RabbitMQ – just 2-3 Python services instead of 4-6+.

---

Quick example:

# tasks.py

from fastworker import task

@task

def send_email(to: str, subject: str):

    return {"sent": True}
# FastAPI app

from fastworker import Client

client = Client()

@app.post("/send/") async def send_notification(email: str):

    task_id = await client.delay("send_email", email, "Welcome!")

    return {"task_id": task_id}
Start workers:

fastworker control-plane --task-modules tasks

fastworker subworker --task-modules tasks # optional

---

Architecture: Uses NNG messaging for direct peer-to-peer communication. Control plane coordinates task distribution via priority heap and tracks worker load. Workers auto-discover via discovery socket. Results cached in-memory with LRU/TTL.

Designed for: Moderate-scale Python apps (1K-10K tasks/min) doing background processing – image resizing, report generation, emails, webhooks. Great for FastAPI/Flask/Django.

NOT for: Extreme scale (100K+ tasks/min), multi-language stacks, or systems requiring persistent task storage. For those, use Celery/RabbitMQ/Kafka.

Try it:

pip install fastworker

Repo: https://github.com/neul-labs/fastworker

FastAPI integration docs: https://github.com/neul-labs/fastworker/blob/main/docs/fasta...

Would love feedback on whether this fills a useful niche or if the limitations make it too narrow.

What Makes an Experiment Beautiful?

https://www.asimov.press/p/beautiful-experiments
1•mhb•29s ago•0 comments

The true cost of a young cancer diagnosis

https://www.businessinsider.com/true-cost-young-colon-cancer-crisis-2025-10
1•mgh2•1m ago•0 comments

Flock Safety's amplified intelligence reshapes modern policing

https://www.police1.com/artificial-intelligence/up-close-flock-safetys-amplified-intelligence-res...
1•mhb•2m ago•0 comments

Reverse Engineering the Miele Diagnostic Interface

https://hackaday.com/2025/11/17/reverse-engineering-the-miele-diagnostic-interface/
1•doener•2m ago•0 comments

What happens when you type a url in the browser?

https://www.systemdesignbutsimple.com/p/what-happens-when-you-type-a-url
1•thunderbong•3m ago•0 comments

Geothermal energy might be the baseload revolution we've been looking for

https://www.newyorker.com/magazine/2025/11/24/why-the-time-has-finally-come-for-geothermal-energy
1•riordan•3m ago•0 comments

Zelenskiy says Ukraine will obtain 100 Rafale warplanes from France

https://www.reuters.com/business/aerospace-defense/zelenskiy-france-seal-air-defence-warplane-dea...
1•doener•3m ago•0 comments

C – defer, a mechanism for general purpose, lexical scope-based undo [pdf]

https://www.open-std.org/jtc1/sc22/wg14/www/docs/n3734.pdf
1•marcodiego•4m ago•0 comments

Russia's Kinzhal Missiles Are Too Fast to Shoot, So Ukraine Jams Them with Music

https://www.trenchart.us/p/to-jam-russias-mach-57-kinzhal-missiles
1•doener•4m ago•0 comments

Darts, Dice, and Coins: Sampling from a Discrete Distribution (2011)

https://www.keithschwarz.com/darts-dice-coins/
1•davikr•5m ago•0 comments

Goals rather than predictions determine the sense of agency

https://www.cell.com/iscience/fulltext/S2589-0042(25)00844-2?_returnURL=https%3A%2F%2Flinkinghub....
1•DrierCycle•6m ago•0 comments

Mount Mayhem at Netflix: Scaling Containers on Modern CPUs

https://netflixtechblog.medium.com/mount-mayhem-at-netflix-scaling-containers-on-modern-cpus-f3b0...
1•ugur2nd•7m ago•0 comments

Ask HN: Our town faces a 300MW DC proposal. What are the real risks?

3•rtp4me•10m ago•0 comments

Show HN: DataSpeeder 2 Beta – Instant End-User Web UI for MySQL and Oracle

https://www.dataspeeder.com/news-20251103-001.html
1•DataSpeeder•11m ago•0 comments

Paradox and Colossal Order have mutually decided to pursue independent paths

https://forum.paradoxplaza.com/forum/threads/an-update-on-cities-skylines-ii.1873154/
1•embedding-shape•11m ago•0 comments

The Futhark Programming Language

https://futhark-lang.org/
1•mvolfik•13m ago•0 comments

X: About Encrypted Direct Messages

https://help.x.com/en/using-x/encrypted-direct-messages
1•tosh•16m ago•0 comments

Make It Possible, Then Make It Normal

https://danielmangum.com/posts/possible-then-normal/
2•hasheddan•17m ago•0 comments

Advent of Compiler Optimisations 2025

https://xania.org/202511/advent-of-compiler-optimisation
1•hasheddan•17m ago•0 comments

How to Not Get Kidnapped for Your Bitcoin

https://www.nytimes.com/2025/11/17/business/how-to-not-get-kidnapped-for-your-bitcoin.html
1•apples_oranges•17m ago•1 comments

FreeMDU: Open-source Miele appliance diagnostic tools

https://github.com/medusalix/FreeMDU
10•Medusalix•18m ago•0 comments

The case against boolean logic

https://abuseofnotation.github.io/boolean-thinking/
1•boris_m•20m ago•0 comments

Countering the Achievement Society (2018)

https://iai.tv/articles/should-we-rediscover-education-as-leisure-auid-1109
1•robtherobber•24m ago•0 comments

Pangram – AI Detection that works

https://www.pangram.com
1•colesantiago•25m ago•0 comments

Intel's next-gen Granite Rapids-WS server CPU lineup leaked

https://www.tomshardware.com/pc-components/cpus/intels-next-gen-granite-rapids-ws-server-cpu-line...
1•rbanffy•26m ago•0 comments

'Buy Now, Pay Later' is expanding fast, and that should worry everyone

https://techcrunch.com/2025/11/16/bnpl-is-expanding-fast-and-that-should-worry-everyone/
3•01-_-•28m ago•0 comments

Ask HN: What's the Least Amount of Process a Small Team Can Get Away With?

3•_phnd_•28m ago•0 comments

WebAssembly Limitations

https://qouteall.fun/qouteall-blog/2025/WebAsembly%20Limitations
3•qouteall•29m ago•1 comments

Interesting websites I found on the internet

1•01-_-•30m ago•0 comments

Wheels of life dashboard – from my deprecated journaling-via-email project

https://wellbio.vercel.app/dashboard
2•danielfalbo•30m ago•0 comments