# Serverless functions for Stream Consuming

**URL:** <https://answers.netlify.com/t/serverless-functions-for-stream-consuming/75015>\
**Category:** Support\
**Tags:** lambda-functions\
**Created:** [September 6, 2022, 8:27pm UTC](https://answers.netlify.com/t/serverless-functions-for-stream-consuming/75015 "2022-09-06T20:27:37Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![MentalGear](https://sea1.discourse-cdn.com/netlify/user_avatar/answers.netlify.com/mentalgear/32/209_2.png) [@MentalGear](https://answers.netlify.com/u/MentalGear)\
**Post date:** [September 6, 2022, 8:27pm UTC](https://answers.netlify.com/t/serverless-functions-for-stream-consuming/75015/1 "2022-09-06T20:27:37Z")

</div>

Scenario: I need to consume a stream continuously.

Is there a way to have long running serverless functions, or a way to spin up one function, and when open, close the old one?

---

<div class="post-metadata">

**Author:** ![coelmay](https://sea1.discourse-cdn.com/netlify/user_avatar/answers.netlify.com/coelmay/32/24427_2.png) [@coelmay](https://answers.netlify.com/u/coelmay)\
**Post date:** [September 6, 2022, 9:42pm UTC](https://answers.netlify.com/t/serverless-functions-for-stream-consuming/75015/2 "2022-09-06T21:42:36Z")

</div>

Hey @MentalGear

Currently, there is no support for streaming. Check out this thread for more.

> [@Stream content to function response body](https://answers.netlify.com/t/stream-content-to-function-response-body/3558):
>
> Hello, I was wondering if it’s possible to stream files to the response body. I don"t see any ways to do this with a netlify function: server.on('request', (req, res) =\> { const src = fs.createReadStream('./big.file'); src.pipe(res); }); Thanks!
