Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hyzyla/slowstream
https://github.com/hyzyla/slowstream
Last synced: 1 day ago
JSON representation
- Host: GitHub
- URL: https://github.com/hyzyla/slowstream
- Owner: hyzyla
- Created: 2024-01-20T13:15:21.000Z (almost 1 year ago)
- Default Branch: main
- Last Pushed: 2024-01-20T13:15:23.000Z (almost 1 year ago)
- Last Synced: 2025-01-16T03:19:33.397Z (4 days ago)
- Language: Python
- Size: 8.79 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# SlowStream
- [x] pydantic body
- [x] raw body
- [x] startup/shutdown
```python
@app.startup
def connect_db(_app: ConsumerApp) -> Iterator[None]:
print('Connect DB...')
try:
yield
finally:
print("Disconnecting DB...")
```
- [ ] middlewares
- [ ] error handling
```python
@app.middleware
def error_middleware(handler, message):
try:
handler(message)
except BaseException:
print("Some error :plak-plak")
```
- [ ] test
- [ ] blueprint/router/sub-consumer
- [ ] async functions
- [ ] reliable (do not loosing messages)
- [ ] concurrent topic execution
- [ ] sentry integration
- [ ] pytest integration
- [ ] fastapi integration