Hi, I'm using the connector builder to query an AP...
# ask-ai
c
Hi, I'm using the connector builder to query an API. The destination I'm using is S3. I'm not seeing the data being sent until all the requests finish, is there a way to change this?
k
The behavior you're observing—where data is only sent to S3 after all requests finish—is due to how Airbyte's S3 destination connector handles data buffering. The S3 destination buffers records in memory and only writes them to S3 in batches, rather than streaming each record as soon as it's received. This is a design choice to optimize for performance and resource usage, especially when dealing with large datasets or multiple streams. The connector holds a buffer for each stream and flushes the data to S3 when certain thresholds are met (like file size or memory limits), not immediately per record or request. This means you won't see data in S3 until the buffer is flushed, which typically happens at the end of the sync or when a buffer is full. Currently, there is no configuration option in Airbyte to make the S3 destination write each record immediately as it arrives. This buffering approach is intentional to avoid excessive memory usage and to optimize file sizes for downstream consumption. There are ongoing discussions and development efforts to improve memory management and buffering strategies, but the fundamental behavior remains the same for now [scale warehouse destination connectors to handle arbitrary number of streams](https://github.com/airbytehq/airbyte/issues/10260). If you need more granular or real-time delivery to S3, you may need to consider alternative architectures or destinations, as the current S3 destination is not designed for immediate per-record streaming.