Asynchronous Logging

后端 未结 5 1418
囚心锁ツ
囚心锁ツ 2021-01-02 01:51

Right now in my application,at certain points we are logging some heavy stuff into the log files.

Basically only for logging we are creating JSON of the data availab

5条回答
  •  难免孤独
    2021-01-02 02:23

    You can also try CoralLog to asynchronously log data using the disruptor pattern. That way you spend minimum time in the logger thread and all the hard work is passed to the thread doing the actual file I/O. It also provides Memory Mapped Files to speed up the consumer thread and reduce queue contention.

    Disclaimer: I am one of the developers of CoralLog

提交回复
热议问题