Re: [akka-user] Re: How to read XML inputstream (with SAX parser) received by akka-http?

2016-08-10 Thread Endre Varga
Btw, I am also interested in how it fares on a 5G input, so please tell us how it went. On Wed, Aug 10, 2016 at 9:02 PM, Endre Varga wrote: > Hi, > > Christmas is early for you then, since this is exactly what I am working > on:

Re: [akka-user] Re: How to read XML inputstream (with SAX parser) received by akka-http?

2016-08-10 Thread Endre Varga
Hi, Christmas is early for you then, since this is exactly what I am working on: https://github.com/drewhk/akka-xml-stream/pull/1 As you see, it is currently on my private repo, but it will be migrated and donated soon to the akka-stream-contrib project (and will gain an Apache Lincense of

Re: [akka-user] Re: How to read XML inputstream (with SAX parser) received by akka-http?

2016-08-10 Thread Patrik Nordwall
Take a look at Endre's streaming xml parser, for inspiration: https://github.com/drewhk/akka-xml-stream/pull/1 ons 10 aug. 2016 kl. 19:57 skrev JY : > Nobody can help me to read 5GB of upload data with akka-http, and without > crashing my VM with OutOfMemoryException ? > >

Re: [akka-user] Re: How to read XML inputstream (with SAX parser) received by akka-http?

2016-08-10 Thread JY
Nobody can help me to read 5GB of upload data with akka-http, and without crashing my VM with OutOfMemoryException ? (I think the topic of this conversation is too specific compared to the real explained problem, but I don't know how to modify the subject) Le mardi 2 août 2016 12:20:28 UTC+2,

Re: [akka-user] Re: How to read XML inputstream (with SAX parser) received by akka-http?

2016-08-02 Thread JY
I forgot to specify that flow I have to analyze weigh between 1 and 5 GB, and I have to extract the value of a dozen tags, which is why we can't load all data into memory, and that we've choose SAX :) Le mardi 2 août 2016 11:23:18 UTC+2, JY a écrit : > > In fact, (I will try to be both more

Re: [akka-user] Re: How to read XML inputstream (with SAX parser) received by akka-http?

2016-08-02 Thread Konrad Malawski
Yeah, that'd be good to collect usecases and demadn there. Though with SAX it won't be automagical ever, they always require manually writing the parsing AFAIR -- Konrad `ktoso` Malawski Akka @ Lightbend On 2 August 2016 at 10:29:21, André

[akka-user] Re: How to read XML inputstream (with SAX parser) received by akka-http?

2016-08-02 Thread André
Maybe you can add your use case to https://github.com/akka/akka/issues/16210. On Tuesday, August 2, 2016 at 10:12:13 AM UTC+2, JY wrote: > > I am new with AKKA and AKKA HTTP. > > I have to write a HTTP server application that reads a lot very big XML > data flows (via HTTP PUT method) and