v1.3.0
Threads and fibers dance,
Concurrent requests take their chance,
Speed finds new romance.
Added
-
Support for concurrency using Fibers
The SDK now internally uses PHP's Fibers language feature,
providing support for concurrent HTTP requests and improved performance. -
Support for non-transactional tuple writes
writeTuplesnow supports both transactional and non-transactional modes.-
In transactional mode, all changes must succeed or the entire operation fails (atomic).
Use when consistency matters - like granting a user multiple permissions at once. -
In non-transactional mode, each batch succeeds or fails independently.
If one batch fails, others may still succeed.
Use for bulk syncs where you can retry failed batches.
See the docs for more information.
-
-
A new
batchhelper function has been added to simplify batch tuple operations. This new helper
supports the full range of parameters available inwriteTuplesand provides a more concise API
for common use cases.
Changed
- Tuple Operations
-
New parameters have been added to
writeTuplesto support configurable parallelism and chunking,
retries and retry delay, and stop-on-first-error behavior. -
The
writeTuplesmethod now filters out duplicate tuples before issuing requests. -
A new
transactionalparameter has been added to thewriteanddeletehelper functions to support
thewriteTupleschanges. -
The
WriteTuplesResponseclass returned bywriteTuplesnow includes detailed results about the operations.
-
Documentation
- Added a new example of non-transactional tuple writes
- Added a new example demonstrating duplicate tuple filtering
- Added a new guide on concurrency and parallelism
- Added a new guide on exception handling