Skip to content

Commit

Permalink
Added note for usage in python apps
Browse files Browse the repository at this point in the history
  • Loading branch information
sacOO7 committed Oct 4, 2023
1 parent fa3bfcd commit 2e3686b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion UPDATING.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ Because of this breaking change, every call that interacts with the Ably REST AP

Important Update -
- If you want to keep using old synchronous style API, make sure to set `sync_enabled` param while passing options to `AblyRest` client.
- This is applicable only for Ably REST async APIs.
- This is applicable only for Ably REST APIs.

```python
from ably import AblyRest
Expand All @@ -101,6 +101,8 @@ def main():
if __name__ == "__main__":
main()
```
- `AblyRest` in `sync` mode is completely thread-safe, uses `internal eventloop` to handle requests.
- If you are using this feature in multi-threaded environments like WSGI server application, make sure to use shared `AblyRest` instance/ injected singleton for better performance.

#### Publishing Messages

Expand Down

0 comments on commit 2e3686b

Please sign in to comment.