# One service multiple functions multiple runtimes

**URL:** <https://forum.serverless.com/t/one-service-multiple-functions-multiple-runtimes/4064>\
**Category:** Serverless Framework\
**Tags:** aws, lambda\
**Created:** [March 21, 2018, 1:36pm UTC](https://forum.serverless.com/t/one-service-multiple-functions-multiple-runtimes/4064 "2018-03-21T13:36:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![moshemal](https://avatars.discourse-cdn.com/v4/letter/m/71c47a/32.png) [@moshemal](https://forum.serverless.com/u/moshemal)\
**Post date:** [March 21, 2018, 1:36pm UTC](https://forum.serverless.com/t/one-service-multiple-functions-multiple-runtimes/4064/1 "2018-03-21T13:36:00Z")

</div>

Since the runtime is defined at the provider level, all functions must be written for the same runtime. How can you define one service with multiple functions with different runtimes? for example one function runs on nodejs and one on python

---

<div class="post-metadata">

**Author:** ![bfieber](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.serverless.com/bfieber/32/653_2.png) [@bfieber](https://forum.serverless.com/u/bfieber)\
**Post date:** [March 21, 2018, 4:09pm UTC](https://forum.serverless.com/t/one-service-multiple-functions-multiple-runtimes/4064/2 "2018-03-21T16:09:25Z")

</div>

You can’t. But…  
You could define multiple services (ie. multiple projects with their own serverless.yml) each using whatever runtime you like, then map them all to the same domain using the APIG Custom Domain feature.

See this [Tutorial](https://serverless.com/blog/api-gateway-multiple-services/) for some tips.

---

<div class="post-metadata">

**Author:** ![a-watson](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.serverless.com/a-watson/32/2089_2.png) [@a-watson](https://forum.serverless.com/u/a-watson)\
**Post date:** [June 13, 2018, 4:30pm UTC](https://forum.serverless.com/t/one-service-multiple-functions-multiple-runtimes/4064/3 "2018-06-13T16:30:02Z")

</div>

Checkout [this example](https://github.com/serverless/examples/tree/master/aws-multiple-runtime). It does exactly what you’re looking for, 1 serverless.yml, 2 functions, 2 runtimes.
