Company
Date Published
Author
-
Word count
436
Language
English
Hacker News points
None

Summary

The Python Elasticsearch client has introduced native async I/O support in its version 7.8.0, addressing growing demand due to the rise of asynchronous Python web frameworks like FastAPI, Starlette, and the upcoming Django 3.1. Async I/O offers notable performance improvements for I/O-heavy workloads, such as web applications, by using system resources more efficiently than traditional multi-threaded applications. This update also includes support for the new Elasticsearch 7.8 APIs. To utilize this feature, users need to install the package with the [async] extra, which incorporates Aiohttp for making HTTP requests to Elasticsearch instances. The updated client allows developers to integrate async operations seamlessly, demonstrated through examples using IPython for immediate event loop access. Additionally, comprehensive documentation, including examples and a webinar scheduled for August 5th, provides further insights into the client's capabilities and integration with Elastic APM.