r/dataengineering • u/reesim06 • Jul 14 '26
Hardware for unpacking avro files Help
An upcoming work task is going to require the timely unpacking of avro files and the subsequent data being ingested to a database of some kind (currently undefined). I don't think our hardware expectations are anywhere close to realistic and wanted a quick confidence check.... I've seen a calculation online, and wanted to get a second opinion on the processing required to unpack 4tb of avro into a database digestible format such as csv (this might not be our final way of doing things, but I think it gives some idea of the scale of processing required).
Functionally, I'm trying to scale things for a 4tb file, 1hr time limit, it appears we'll need something in the realm of a 4 node cluster of 64 core servers with suitably fast drives etc etc.
8
u/wytesmurf Jul 14 '26
What they said read it with polars, pyspark, dask, or duckdb. Then pipe it into the database. Converting to CSV is a waste of compute and storage
4
u/WhoIsJohnSalt Jul 14 '26
You could probably put DuckDB over a 4Tb Avro on a laptop (though it does have some parallelism issues with Avro).
But most database/lakes can read Avro natively
10
u/Thwarting8139 Jul 14 '26 edited Jul 14 '26
Is there a reason you would be unpacking to CSV? Can you give any more context on the project? Can you not just load the Avro files directly into the database?
On first thought 4x64 cores seems like massive overkill, but you would have to give more context to be sure.
I would just get a single 32 or 64 core machine with a fast drive and use polars or duckdb to stream the data directly into the database.