How do I prevent writing of invalid JSON when the nodejs service is stopped or crashes?

后端 未结 0 1650
暗喜
暗喜 2021-01-04 05:49

The Usecase

I have a NodeJS service (also is a sysemd service) where I write out the internal state as .json

This is for the purpose to have this state persi

相关标签:
回答
  • 消灭零回复
提交回复
热议问题