# Using Worker Threads with a lambda function?

**URL:** <https://discourse.sst.dev/t/using-worker-threads-with-a-lambda-function/2755>\
**Category:** General\
**Created:** [October 27, 2022, 10:38am UTC](https://discourse.sst.dev/t/using-worker-threads-with-a-lambda-function/2755 "2022-10-27T10:38:08Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![simondean](https://avatars.discourse-cdn.com/v4/letter/s/ccd318/32.png) [@simondean](https://discourse.sst.dev/u/simondean)\
**Post date:** [October 27, 2022, 10:38am UTC](https://discourse.sst.dev/t/using-worker-threads-with-a-lambda-function/2755/1 "2022-10-27T10:38:08Z")

</div>

Hi 👋. I’m using sst for a reasonably sized backend service. I have a lambda function that a) needs a quick response time (sub 1 second is quick in this context) but b) also needs to perform some CPU intensive processing. I’d like to use node.js’s worker threads feature [Worker threads | Node.js v19.0.0 Documentation](https://nodejs.org/api/worker_threads.html) for this. This seems challenging though, as I used TypeScript for my lambdas (so files are \*.ts files that need transpilation) and as sst uses minification when creating the JS to upload to AWS for a lambda function

Does anyone have any experience with using web workers in an sst managed lambda function?

Thanks  
Simon
