I faced similar problem few years back then with financial data: live stream bid/ask/trade of high frequency trading events. The final result is in H5CPP an easy to use high performance MIT licensed header only library for modern C++ presented in this webinar.
In the examples directory there are entries for various patterns including a high performance packet table. The IO performance is on par or better with POSIX calls: ~300MByte/sec on my laptop.
You might also be interested in the compiler assisted reflection feature, which allows you to use arbitrary deep POD struct by simple referencing it with one of the h5::read | h5::write | h5::create | h5::append operators. The LLVM based compiler tool will scan the TU translation unit and generate the minimum size HDF5 compound datatype descriptor as shown this example and this comparative one.
The work flow is simple: include the C/C++ files in the TU translation unit, and leave the details for the compilers.