Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question about streaming possibility #59

Open
elgatito opened this issue Mar 11, 2021 · 1 comment
Open

Question about streaming possibility #59

elgatito opened this issue Mar 11, 2021 · 1 comment

Comments

@elgatito
Copy link

Hello,

I'm investigating this library and can't find the way how to implement file streaming with it.

Let's assume huge file is stored in another storage, so I want to use own implementation of file stream, that implements (open/seek/read/write), which then can be used by a framework to get/send chunks of bytes to requestor of this file.

Is this possible with the current state?

@matt-42
Copy link
Owner

matt-42 commented Mar 12, 2021

Hi @elgatito ,

Lithium is based on async io to serve concurrent requests in one thread. Is your own implementation also async ?
if not you read method will block the whole thread when reading the file. So you'll loose all the benefits of using an async framework like lithium.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants