Skip to content

Releases: airtai/faststream

v0.5.37

21 Mar 16:02
52d19de
Compare
Choose a tag to compare

What's Changed

Full Changelog: 0.5.36...0.5.37

v0.5.36

18 Mar 16:50
c5ae611
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: 0.5.35...0.5.36

v0.5.35

02 Mar 10:15
81b1e18
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: 0.5.34...0.5.35

v0.5.34

08 Jan 14:20
012cb1a
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: 0.5.33...0.5.34

v0.5.33

05 Dec 15:37
c2deaa4
Compare
Choose a tag to compare

What's Changed

Just a Confluent & Kafka hotfix. Messages without body (with key only) parsing correctly now.

Full Changelog: 0.5.32...0.5.33

v0.5.32

04 Dec 21:41
cea4452
Compare
Choose a tag to compare

What's Changed

Thanks to @Flosckow one more time for a new release! Now you have an ability to consume Confluent messages (in autocommit mode) concurrently!

from faststream.confluent import KafkaBroker

broker = KafkaBroker()

@broker.subscriber("topic", max_workers=10)
async def handler():
    """Using `max_workers` option you can process up to 10 messages by one subscriber concurrently"""

Also, thanks to @Sehat1137 for his ASGI CLI support bugfixes

Full Changelog: 0.5.31...0.5.32

v0.5.31

29 Nov 18:17
48b7304
Compare
Choose a tag to compare

What's Changed

Well, you (community) made a new breathtaken release for us!
Thanks to all of this release contributors.

Special thanks to @Flosckow . He promotes a new perfect feature - concurrent Kafka subscriber (with autocommit mode)

from faststream.kafka import KafkaBroker

broker = KafkaBroker()

@broker.subscriber("topic", max_workers=10)
async def handler():
    """Using `max_workers` option you can process up to 10 messages by one subscriber concurrently"""

Also, thanks to @Sehat1137 with his ASGI CLI start fixins - now you can use FastStream CLI to scale your AsgiFastStream application by workers

faststream run main:asgi --workers 2

There are a lot of other incredible changes you made:

New Contributors

Full Changelog: 0.5.30...0.5.31

v0.5.30

14 Nov 20:48
fe0e46b
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: 0.5.29...0.5.30

v0.5.29

07 Nov 16:48
9c25b7b
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: 0.5.28...0.5.29

v0.5.28

20 Oct 19:51
3beae64
Compare
Choose a tag to compare

What's Changed

There were a lot of time since 0.5.7 OpenTelemetry release and now we completed Observability features we planned! FastStream supports Prometheus metrics in a native way!

Special thanks to @roma-frolov and @draincoder (again) for it!

To collect Prometheus metrics for your FastStream application you just need to install special distribution

pip install faststream[prometheus]

And use PrometheusMiddleware. Also, it could be helpful to use our ASGI to serve metrics endpoint in the same app.

from prometheus_client import CollectorRegistry, make_asgi_app
from faststream.asgi import AsgiFastStream
from faststream.nats import NatsBroker
from faststream.nats.prometheus import NatsPrometheusMiddleware

registry = CollectorRegistry()

broker = NatsBroker(
    middlewares=(
        NatsPrometheusMiddleware(registry=registry),
    )
)

app = AsgiFastStream(
    broker,
    asgi_routes=[
        ("/metrics", make_asgi_app(registry)),
    ]
)

Moreover, we have a ready-to-use Grafana dashboard you can just import and use!

To find more information about Prometheus support, just visit our documentation.

All changes

New Contributors

Full Changelog: 0.5.27...0.5.28