I am developing a Linux-based application using Blazor server-side and .NET 6. Our application heavily relies on I/O operations, and currently, we call the Sync method of the operating system after each I/O operation to ensure that the changes are reflected on the disk instead of OS cache memory.
I'm wondering if there are any alternative approaches that eliminate the need for explicitly calling the Sync method, or if it is considered a best practice to invoke Sync after each I/O operation.
is there any way in dot net core framework to flush data directly to disk without calling explicit Linux sync method?