Design and implement a thread-safe, durable event writer for a single-server application. Thousands of application threads share a single instance of a class and continuously call it to append small (≤1 KB) opaque byte payloads to a file on local disk. The interface is: The key constraint is that push()…