-
Notifications
You must be signed in to change notification settings - Fork 0
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
Why 3 separate apps? #1
Comments
Hi, It is absolutely not necessary to have 3 separate apps. [Edit] For example, there is no database package installed in the workflow worker, because there is no need for data access there. Depending on your particular use case, you can implement your features in one, two, three or even more apps. You can also choose to have separate apps for different features, with the workflows and activities implemented in the same app. Please note that you will need a specific configuration in RoadRunner if you want to process both HTTP and Temporal requests in the same app. |
Thanks a lot for your answer, that clears up some of the questions that I had! I have been toying with a single App doing all 3 things by moving things into a single app (some code clashes because the class/file names are the same with different contents), but I managed to merge most of it. However I am now stuck with spawning new workflows (the examples), it throws the exception I will try to separate out a reproducible repository without my own code on Monday if more debugging doesn't bring me any results 😅. |
Hi, I've renamed some files to make it a bit more clear what they do. There's also a new Docker Compose file in the |
Wow, that is amazingly helpful! Thanks so much! It works like a charm. 😄 |
You are welcome. |
Hello! Thanks for your work on creating a Symfony with Temporal sample, it is exactly what Ive been trying to setup last week. I just keep wondering when browsing through the code:
Why do you use 3 separate apps? I see a lot of common code and especially when not dealing with examples, a lot of things (think: entities, logic, etc) would have to be duplicated over 3 apps.
This left me wondering, is this a mandatory split, or can I also build all of it into one combined Symfony app? And if so, how would I go about doing that?
The text was updated successfully, but these errors were encountered: