CVu, Code Critique, and D

Russel Winder russel at winder.org.uk
Tue Jun 19 14:43:32 UTC 2018


On Tue, 2018-06-19 at 09:55 -0400, Steven Schveighoffer via Digitalmars-d
wrote:

There is no rule against a two person review.

> On 6/19/18 9:43 AM, Anton Fediushin wrote:
> > On Tuesday, 19 June 2018 at 08:56:05 UTC, Russel Winder wrote:
> > > I would like to build a back-end server that performs some processing 
> > > on the body of the HTTP request it receives.  To begin with, I would 
> > > like it to simply echo the request body back to the client.
> > 
> > There is vibe.web.rest which covers 90% of everything one might need for 
> > their back-end application. There's practically no reason to bother with 
> > bodyReaders/Writers.
> 
> The one reason I found is that the REST interface must serialize 
> everything before returning.
> 
> For example, if you are looking for ALL the data from your database, 
> instead of streaming it while parsing the database, you have to 
> serialize the entire database to an in-memory array, and return that, 
> which the REST interface will then serialize to JSON.
> 
> In my case, I had to output the data manually to avoid insane memory 
> consumption.
> 
> -Steve
-- 
Russel.
===========================================
Dr Russel Winder      t: +44 20 7585 2200
41 Buckmaster Road    m: +44 7770 465 077
London SW11 1EN, UK   w: www.russel.org.uk
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: This is a digitally signed message part
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20180619/d3d9659e/attachment.sig>


More information about the Digitalmars-d mailing list