frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

Open in hackernews

Show HN: Update on Dispytch: Just Got Dynamic Topics – Event Handling Leveled Up

https://github.com/e1-m/dispytch
1•e1-m•6h ago

Comments

e1-m•6h ago
Hey folks, quick update! I just shipped a new version of [*Dispytch*](https://github.com/e1-m/dispytch) — async Python framework for building event-driven services.

# What Dispytch Does

Dispytch makes it easy to build services that react to events — whether they're coming from Kafka, RabbitMQ, Redis or some other broker. You define event types as Pydantic models and wire up handlers with dependency injection. Dispytch handles validation, retries, and routing out of the box, so you can focus on the logic.

# Comparison

|Framework|Focus|Notes| |:-|:-|:-| |Celery|Task queues|Great for backgroud processing| |Faust|Kafka streams|Powerful, but streaming-centric| |Nameko|RPC services|Sync-first, heavy| |FastAPI|HTTP APIs|Not for event processing| |FastStream|Stream pipelines|Built around streams—great for data pipelines.| |*Dispytch*|Event handling|Event-centric and reactive, designed for clear event-driven services.|

# Quick API Example

# Handler

    user_events.handler(topic='user_events', event='user_registered')
    async def handle_user_registered(
            event: Event[UserCreatedEvent],
            user_service: Annotated[UserService, Dependency(get_user_service)]
    ):
        user = event.body.user
        timestamp = event.body.timestamp
    
        print(f"[User Registered] {user.id} - {user.email} at {timestamp}")
    
        await user_service.do_smth_with_the_user(event.body.user)
# Emitter

    async def example_emit(emitter):
       await emitter.emit(
           UserRegistered(
               user=User(
                   id=str(uuid.uuid4()),
                   email="example@mail.com",
                   name="John Doe",
               ),
               timestamp=int(datetime.now().timestamp()),
           )
       )
# What’s New?

*Redis Pub/Sub support* You can now plug Redis into Dispytch and start consuming events without spinning up Kafka or RabbitMQ. Perfect for lightweight setups.

*Dynamic Topics* Handlers can now use topic segments as function arguments — e.g., match `"user.{user_id}.notification"` and get `user_id` injected automatically. Clean and type-safe thanks to Pydantic validation.

Try it out:

    uv add dispytch

 Docs and examples in the repo: [https://github.com/e1-m/dispytch](https://github.com/e1-m/dispytch)
Feedback, bug reports, feature requests — all welcome. Still early, still evolving

Thanks for checking it out!

Show HN: Sand Vibrations App (Chladni Patterns)

https://apps.apple.com/us/app/sand-patterns-chladni-plate/id6748863721
1•_august•1m ago•0 comments

A Human Review

https://www.trysmudford.com/blog/a-human-review/
1•almost-exactly•1m ago•0 comments

SaaS 2.0

https://benn.substack.com/p/saas-20
1•gwintrob•3m ago•0 comments

Apple set to stave off daily fines, EU to accept App Store changes, sources say

https://www.reuters.com/sustainability/boards-policy-regulation/apple-set-stave-off-daily-fines-eu-accept-app-store-changes-sources-say-2025-07-22/
1•alephnerd•3m ago•0 comments

Kadence Raises $20M to Transform How Enterprises Run the Modern Workplace

https://kadence.co/news/kadence-20m-series-a/
1•cg17•5m ago•0 comments

The mutagenic forces shaping the genomes of lung cancer in never smokers

https://www.nature.com/articles/s41586-025-09219-0
3•littlexsparkee•6m ago•0 comments

Theory of Everything: Solved

https://github.com/Cosmolalia/TOE
1•Cosmolalia•6m ago•0 comments

Life doesn't end at 22 or start at 35

https://www.sebjenseb.net/p/life-doesnt-end-at-22-or-start-at
2•paulpauper•7m ago•1 comments

Amazon acquires wearable personal AI company bee

https://seekingalpha.com/news/4470117-amazon-acquires-wearable-personal-ai-company-bee
1•amirkabbara•10m ago•0 comments

Show HN: Chrome extension to practice typing while reading any webpage

https://chromewebstore.google.com/detail/typing-practice/jmelinmnnkfanophcakljpmanhhndcgj
1•maximcus•10m ago•0 comments

Coca-Cola will roll out cane sugar Coke in US after Trump push

https://www.bbc.com/news/articles/cev0rj193j3o
1•tartoran•12m ago•1 comments

Show HN: Scrybble sync – Sync files from reMarkable to Obsidian

https://scrybble.ink
1•azeirah•13m ago•0 comments

Stablecoin as a Service

https://www.bitgo.com/stablecoin-as-a-service/
2•wslh•15m ago•0 comments

Show HN: Cursor Stats – See your Cursor usage like GitHub contributions

https://chromewebstore.google.com/detail/cursor-stats/fdlfealdpfjfjnadhdobllmondagkcal
1•alexerm•16m ago•0 comments

Silicon Valley engineer admits theft of US missile tech secrets

https://www.theregister.com/2025/07/22/engineer_admits_trade_theft/
6•rntn•18m ago•0 comments

Why Your Enterprise Needs a Headless CMS – Now More

2•imcasy•21m ago•0 comments

New approach allows drone swarms to autonomously navigate complex environments

https://techxplore.com/news/2025-07-approach-drone-swarms-autonomously-complex.html
3•Brajeshwar•22m ago•0 comments

New Discovered 'Infinity Galaxy' Could Prove How Supermassive Blackholes Formed

https://www.wired.com/story/newly-discovered-infinity-galaxy-could-prove-how-ancient-supermassive-black-holes-formed/
2•Brajeshwar•22m ago•0 comments

AI-Designed Drugs Can Target 'Undruggable' Proteins in Cancer and Alzheimer's

https://singularityhub.com/2025/07/21/ai-designed-drugs-can-now-target-previously-undruggable-proteins-in-cancer-and-alzheimers/
1•Brajeshwar•24m ago•0 comments

Show HN: ModelMashup – Chat with Multiple LLMs Simultaneously

https://modelmashup.vercel.app/
1•martianmanhunt•25m ago•0 comments

Show HN: OLLS – A Vendor-Neutral Standard for LLM Inputs and Outputs

1•gpt4o•25m ago•0 comments

A book for non-tech leaders on venture studios and AI (based on real stories)

https://www.venturespeed.ai
1•aszig•25m ago•1 comments

Show HN: Create your color palettes in context, not isolation

https://colorpal-sage.vercel.app/
2•mazahermuraj•26m ago•0 comments

Ask HN: Mentor for Transition from Software Engineer to Sales Engineer

2•pedrodelfino•26m ago•0 comments

Vibecoding a High Performance System

https://andrewkchan.dev/posts/systems.html
5•reasonableklout•29m ago•0 comments

In Indonesia, a startup captures coolants to stop global warming

https://www.japantimes.co.jp/environment/2025/07/10/climate-change/indonesia-startup-coolants-global-warming/
1•PaulHoule•30m ago•0 comments

AI Market Clarity

https://blog.eladgil.com/p/ai-market-clarity
14•todsacerdoti•32m ago•0 comments

Engineering wisdom from a year of Talking Postgres

https://techcommunity.microsoft.com/blog/adforpostgresql/bits-of-wisdom-from-a-year-of-talking-postgres/4434622
2•clairegiordano•33m ago•0 comments

Hierarchical Reasoning Model

https://arxiv.org/abs/2506.21734
3•fofoz•33m ago•0 comments

Honda Has Entered a New Business – Launching Rockets into Space

https://www.slashgear.com/1918718/honda-first-successful-rocket-launch/
4•Bluestein•34m ago•1 comments