Company
Date Published
Author
Max Alexander
Word count
1004
Language
English
Hacker News points
None

Summary

Ditto is introducing a new API called the Ditto Bus, designed to allow developers to create latency-sensitive applications by sending data directly between peers, bypassing the traditional database operations that the Ditto platform previously focused on. This new API aims to address use cases that require real-time data transmission, such as audio streaming and game development, by providing a more direct and flexible networking layer reminiscent of the Laminar open-source project. The Ditto Bus will be released incrementally on different platforms, with initial availability on DittoSwift for version 1.0.20, allowing users to send packets with varying reliability levels, akin to UDP and TCP protocols. While the API is initially simple, it is expected to evolve with more options for advanced users, although limitations exist for web browsers due to their reliance on TCP. The Ditto team is exploring the potential for using WebRTC to enable similar high-speed performance in browsers.