foyer
foyer copied to clipboard
feat: new mechanism to limit memory usage by stall
The original implementation uses a ring buffer to manage and limit memory usage. The new one, without the ring buffer, has no method but a rate limit admission policy only to do it, which can be forgotten sometimes or misconfigured. A new mechanism is need to limit memory usage and stall writers.
ref: #230