Making a Shard-Aware Python Driver for ScyllaDB, Part 2
Blog post from ScyllaDB
In a presentation at the Europython 2020 Conference, Alexys Jacob, CTO of Numberly, discussed the development of a shard-aware Python driver for ScyllaDB, highlighting its structural differences from the Cassandra driver. The ScyllaDB driver opens a connection per core per node to efficiently account for cluster topology and shard ID calculations, unlike Cassandra which opens one connection per node. Despite protocol limitations that prevent the client from determining specific shard connections, the implementation uses an optimistic and asynchronous method to improve application startup times and performance. Alexys praised Israel Fruchter's contributions to the shard-aware driver code, especially in optimizing performance with Cython, which significantly reduced latency. The shard-aware driver demonstrated a 15% to 25% performance boost in production, with progressive improvements as the application runs longer, leading to reduced cluster load and resource savings. Alexys invited the audience to try the ScyllaDB driver, sharing its success in production and ongoing improvements in documentation and functionality.
| Trend | Post Mentions | Total Month Mentions | Posts | Companies | MoM |
|---|---|---|---|---|---|
| Kubernetes | 2 | 1,121 | 152 | 48 | +7% |
| Real-time | 2 | 818 | 271 | 91 | +9% |
Use this post, company, and trend context to find content marketing opportunities, perform competitive analysis, or address product feature gaps via the Plushcap MCP server or the Plushcap API.