[Glass] rest api returning large result

Otto Behrens otto at finworks.biz
Mon May 20 10:08:47 PDT 2024

> Okay, I’ll give that a try and see what I can get when using the Zinc
> adaptor in GemStone…


> Btw, if you have the file on disk, consider using X-Sendfile protocol to
> nginx.
> Something like this, where ‘document url’ is the url where it is reachable
> through nginx:

Yes, we use this extensively. We serve pdf documents and things like that.
The rest API data can possibly also be written to a file. But not for all
the api endpoints, maybe for this specific one that's giving us trouble.
But that surely just bypasses the issue?

> self requestContext
> respond: [ :response |
> response headerAt: 'X-Accel-Redirect' put: document url ]
> I’m using FastCGI in production, and serving large json files as well. Did
>> not see this performance issue pop up though.
> O dear, we did use FastCGI many moons ago and ended up reverting to an
> HTTP proxy. It was a bit easier to work with as HTTP is more readable, but
> I just remember it was a bit of a battle.
> I would not recommend it anymore in the sense that the protocol itself is
> outdated and prohibits things like websockets.
> But I mentioned it to say that the performance issue might very well be in
> the Zinc Adaptor for GemStone.
> _______________________________________________
> Glass mailing list
> Glass at lists.gemtalksystems.com
> https://lists.gemtalksystems.com/mailman/listinfo/glass
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gemtalksystems.com/mailman/archives/glass/attachments/20240520/a15a0596/attachment.htm>

More information about the Glass mailing list