<div dir="ltr"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><div><div>Okay, I’ll give that a try and see what I can get when using the Zinc adaptor in GemStone…<br></div></div></div></blockquote><div><br></div><div>Thanks</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><div><div></div></div><div>Btw, if you have the file on disk, consider using X-Sendfile protocol to nginx. <br></div><div>Something like this, where ‘document url’ is the url where it is reachable through nginx:</div></div></blockquote><div><br></div><div>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?</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><div>self requestContext<br></div><div><div><span style="white-space:pre-wrap">              </span>respond: [ :response | </div><div><span style="white-space:pre-wrap">                 </span>response headerAt: 'X-Accel-Redirect' put: document url ]</div></div><div><br><blockquote type="cite"><div><div dir="ltr" style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><div>I’m using FastCGI in production, and serving large json files as well. Did not see this performance issue pop up though.</div></div></blockquote><div><br></div><div>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.</div></div></div></div></blockquote><div><br></div>I would not recommend it anymore in the sense that the protocol itself is outdated and prohibits things like websockets.</div><div>But I mentioned it to say that the performance issue might very well be in the Zinc Adaptor for GemStone.</div></div>_______________________________________________<br>
Glass mailing list<br>
<a href="mailto:Glass@lists.gemtalksystems.com" target="_blank">Glass@lists.gemtalksystems.com</a><br>
<a href="https://lists.gemtalksystems.com/mailman/listinfo/glass" rel="noreferrer" target="_blank">https://lists.gemtalksystems.com/mailman/listinfo/glass</a><br>
</blockquote></div></div>