Rust + Python

The Perfect Combination

Python

  • Flexibility
  • Dynamic Typing
  • Time To Market

Rust

  • Full Control
  • Error Handling
  • Threading

Rust

  • Parse Requests
  • Reconnecting
  • Queueing
  • Service Discovery

Python

  • Routing
  • Data Validation
  • Business Logic

Agenda

  • Performance
  • Asynchronous I/O
  • Applicability

Subjects

  • stator
  • stator+asyncio
  • uwsgi
  • uwsgi-gevent
  • tornado

Hello World Hello World Http + Redis Redis + 10ms Sleep Redis + 10ms Busy

What's the Point?

Microservices

  • go
  • erlang

Microservices

  • Rate-Limits
  • Health-Check
  • Metrics

Middleware

  • Auth
  • Prefetch

Async Actions

  • Logging
  • Tasks
  • Push Notifications
  • Service Discovery

Crazy Features

  • Bounce
  • Show Stack
  • Websockets
  • Good Protocols
  • No Monkeypatching
https://github.com/tailhook/stator