/lynxchan/ - LynxChan

The best engine you will ever shitpost with.



Keep threads on-topic.
Roadmap
Installation video tutorial
Vichan migration script

Reply:



Max Message Length: 4096
Don't show location
Make sure I have a block bypass
Files:
Spoiler Max File Size: 1.00 MB
File Limit Per Post: 3
Remember to follow the rules .


Was the RAM cache a mistake? Dog 01/02/2018 (Tue) 08:43:20 Id: 100739 [Preview] No. 502
Open file ( 490.02 KB 255x255 pondering.gif )
Can someone explain me the rationale behind the RAM cache? Intuitively, it feels wrong to (re)implement caching of GridFS files because GridFS/MongoDB already performs some sort of caching in the background. The main benefit seems to be the non-preemptive caching strategy (JIT), which is a big win, but could have been easily achieved without an additional cache layer.

Cat 01/02/2018 (Tue) 12:05:56 Id: 4e1f98 [Preview] No. 503
Concurrency and performance.

Gridfs became unstable with JIT removing and reading at the same time, causing corrupted caches. Up to 1.8 that wasn't an issue since cached files would only be removed after a newer version was stored.

And the new implementation was able to serve 5x more requests.


Reason:
Password:
Global
Delete only files
Delete media (Actually removes the saved files from the server, standard file deletion only removes the reference to the selected posts)

Captcha(Used for reporting and bans by board staff): No cookies?