An API for applying incoming updates to documents in real-time