Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
large files etc
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  6 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
mojon00b  
View profile  
 More options May 26 2012, 5:40 pm
From: mojon00b <vitaly.kup...@gmail.com>
Date: Sat, 26 May 2012 14:40:05 -0700 (PDT)
Local: Sat, May 26 2012 5:40 pm
Subject: large files etc
Starting out with a little prototype for internal enterprise web
services. Read the docs and can do basic rendering examples but how do
you, in a RESTful way I guess,
* download a large file to the client

* serve a delayed response to a client (like a result of a db query)
* maybe run some things on a server, while a client can pull job
status, and render results?

The first one is the most pressing, but if you can point me to
anything mojolicious on the other two bullets, I would also much
appreciate.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Виктор Турский  
View profile   Translate to Translated (View Original)
 More options May 26 2012, 6:00 pm
From: Виктор Турский <koorc...@gmail.com>
Date: Sun, 27 May 2012 01:00:35 +0300
Local: Sat, May 26 2012 6:00 pm
Subject: Re: [Mojolicious] large files etc
2012/5/27 mojon00b <vitaly.kup...@gmail.com>:
> * download a large file to the client

Maybe "Mojolicious::Plugin::RenderFile" (
https://metacpan.org/module/Mojolicious::Plugin::RenderFile ) will be
useful for this purpose.

--
Viktor Turskyi
http://webbylab.com
http://koorchik.blogspot.com


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
mojon00b  
View profile  
 More options May 26 2012, 6:06 pm
From: mojon00b <vitaly.kup...@gmail.com>
Date: Sat, 26 May 2012 15:06:18 -0700 (PDT)
Local: Sat, May 26 2012 6:06 pm
Subject: Re: large files etc
Spasibo, Viktor, I'll try it out. I see also that in a prior
discussion sri points to Controller::render streaming example, I'll
try that too.

On May 26, 3:00 pm, Виктор Турский <koorc...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Charlie Brady  
View profile  
 More options May 29 2012, 11:16 am
From: Charlie Brady <charlieb-m...@budge.apana.org.au>
Date: Tue, 29 May 2012 11:16:34 -0400 (EDT)
Local: Tues, May 29 2012 11:16 am
Subject: Re: [Mojolicious] large files etc

On Sun, 27 May 2012, �~Rик�~Bо�~@ Т�~C�~@�~Aкий wrote:
> 2012/5/27 mojon00b <vitaly.kup...@gmail.com>:
> > * download a large file to the client
> Maybe "Mojolicious::Plugin::RenderFile" (
> https://metacpan.org/module/Mojolicious::Plugin::RenderFile ) will be
> useful for this purpose.

That does look interesting. Has anybody done something similar for reading
from another process (pipe)?

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Benjamin Hitz  
View profile  
 More options May 29 2012, 1:37 pm
From: Benjamin Hitz <h...@stanford.edu>
Date: Tue, 29 May 2012 10:37:55 -0700
Local: Tues, May 29 2012 1:37 pm
Subject: Re: [Mojolicious] large files etc

> * serve a delayed response to a client (like a result of a db query)
> * maybe run some things on a server, while a client can pull job
> status, and render results?

I did implement something like this - but in reverse.  client uploads a large file and it gets processed on server chunk by chunk and sent back to the client.

I am not extremely happy with it, and the tests aren't complete but it seems to work (uses fork)

https://github.com/hitz/RegulomeDB

Following on the discussion from last week, I thought it could be reimplmented with WebSockets using something like this:
http://mojolicio.us/perldoc/Mojolicious/Guides/Cookbook#Streaming_mul...

But there are two issues with that:
1) I wanted the client to be able to close the webserver and get the results later
2) Project is currently not funded, and hence somewhat deprioritized.

Ben

--
Ben Hitz
Senior Scientific Programmer ** Saccharomyces Genome Database ** GO Consortium
Stanford University ** h...@stanford.edu


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Siddhartha Basu  
View profile   Translate to Translated (View Original)
 More options May 30 2012, 12:08 pm
From: Siddhartha Basu <sidd.b...@gmail.com>
Date: Wed, 30 May 2012 11:08:55 -0500
Local: Wed, May 30 2012 12:08 pm
Subject: [Mojolicious] Re: large files etc

For downloading large files particularly in prod Xsendfile could be a viable option.
You just need to activate the option(s) in your webserver(either of
apache or nginx), set the xsendfile header from your controller and
serve the response using Mojo::Asset::File module.

-siddhatha


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »