dhiaayachi / temporal

Temporal service
https://docs.temporal.io
MIT License
0 stars 0 forks source link

Support for nestjs #186

Open dhiaayachi opened 2 months ago

dhiaayachi commented 2 months ago

Is your feature request related to a problem? Please describe. As a backend engineer who loves nestjs and uses it I would love to experiment with Temporal

Describe the solution you'd like They're community/individual efforts for example: https://github.com/KurtzL/nestjs-temporal are there plans to support such endeavors it would be a risk to our department If we invested then the pkg is not updated

Describe alternatives you've considered Writing plain nodejs but the company has policies and practices (NestJs only)

dhiaayachi commented 1 month ago

Is your feature request related to a problem? Please describe.

As a backend engineer who enjoys using NestJS, I'd like to explore and experiment with Temporal within my NestJS projects.

Describe the solution you'd like

Currently, there are community-driven efforts like nestjs-temporal, but there's a lack of official Temporal support and plans for these endeavors. This raises concerns about future maintenance and updates.

We need to understand if Temporal plans to officially support and collaborate with NestJS developers. This would be crucial for our department to invest in NestJS-Temporal integration without worrying about potential risk due to lack of updates.

Describe alternatives you've considered

We could consider writing plain Node.js code, but our company has strict policies and best practices favoring NestJS. Switching to plain Node.js would require extra effort and potentially conflict with those rules.

In short, we are looking for Temporal's official stance on NestJS integration. This would allow us to confidently proceed with development without risking future maintenance challenges.

dhiaayachi commented 1 month ago

Thank you for your feature request!

We appreciate you sharing your interest in Temporal and your experience with NestJS. While we don't have any immediate plans to officially support NestJS integrations, we encourage the community to contribute to projects like the one you linked. You can also consider using the Temporal TypeScript SDK directly in your NestJS application, as it provides the flexibility to integrate with your existing framework. https://docs.temporal.io/develop/typescript/

We are always looking for ways to improve Temporal and welcome any feedback or contributions you may have!

dhiaayachi commented 1 month ago

Thank you for your feature request! We appreciate your interest in using Temporal with NestJS.

While there are no official plans to directly support NestJS integration at this time, you can explore existing community-driven projects like the one you mentioned: https://github.com/KurtzL/nestjs-temporal.

As a workaround, you could consider using a separate Temporal Worker within your NestJS application. You can leverage the existing Temporal TypeScript SDK to define your Workflows and Activities, and then run the Temporal Worker alongside your NestJS application.

This approach allows you to benefit from Temporal's features while maintaining your company's NestJS-only policy.

Let us know if you have any further questions or need additional guidance.

dhiaayachi commented 1 month ago

Thank you for your feature request! We appreciate you bringing this to our attention.

While we don't have any immediate plans to officially support NestJS integration with Temporal, we encourage community efforts like the one you linked.

As a workaround, you could consider:

Let us know if you have any further questions or if there's anything else we can help with.

dhiaayachi commented 1 month ago

Thank you for your feature request! Temporal is actively developing its support for various frameworks and languages. While there isn't official support for NestJS-Temporal at this time, you can explore the project nestjs-temporal and work around it for now.

To mitigate risk to your department, you can consider the following:

This approach allows you to leverage the community's efforts while reducing the risk associated with relying on an unofficial library.

dhiaayachi commented 1 month ago

Thanks for your feature request! We appreciate your enthusiasm for using Temporal with NestJS.

We understand the risk of relying on a package that's not officially supported by Temporal. While we don't have any immediate plans for official NestJS integration, you can use the Temporal TypeScript SDK to build a Temporal application in your NestJS project. NestJS allows you to organize your code using a modular structure, so it should be possible to encapsulate your Temporal Workflows and Activities in a separate module. You can then create a custom provider that exposes Temporal functionality to the rest of your application.

We encourage you to contribute to the existing community effort by KurtzL. You can also share your experiences and any feedback you have on this approach in the Temporal Community Forum here.