<div dir="ltr">Hello:<div><br></div><div>I am new to Nginx NJS, and I want to write a website with NJS.</div><div><br></div><div>I want to write a simple JSON database with NJS fs.writeFileSync ,just like Node.js LowDB.</div><div><br></div><div>but I have no idea . Does NJS fs.writeFileSync is atomic writing and race condition prevention ?</div><div><br></div><div>If NJS fs.writeFileSync is NOT atomic writing, it can NOT be treate as a normal database file write.</div><div><br></div><div>Thank you !</div><div><br></div>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div>--------------------------------------------------------------------<br>Heng<br>---------------------------------------------------------------------<br>--<br></div></div></div></div>