-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
aiohttp 1.1 #1290
Comments
i agree with @iamybj sub-applications look like over-complication |
While sub-application is not most urgent feature, but can help with extensibility of |
I want try to implement sub-apps now and see how easy to achieve the target. |
@iamybj your comment is not constructive |
@iamybj I don't understand why subapps need as well, but I hope some prototype will show us the reason and their goal. There is no much information about them for now to judge. For now I imagine they as sort of Flask blueprints which I also never used while idea behind was pretty useful. |
Actually aiohttp sub-applications should be more complex that flask's blueprints. Hope, I've described my goal. |
@asvetlov |
+100 for sub-applications: On the paper, microservices is awesome, but when you benchmark, the fact you could have a lot of network HTTP requests behind the scene for a public HTTP endpoint, isn't a help to reduce latency. For me, I understand sub-applications like microservices, but the integration/communication is in pure Python, instead of to use HTTP. You might name that "nanoservices" ? ;-) Moreover, at least to me, both patterns aren't exclusive: you can have several HTTP daemons that can share some sub-applications: Finally you decide how many instances of your code you need, how to interact and where it runs. For me, your architecture splits between microservices and nanoservices depend more about your political hierarchy of your company or your project, to define the limits of responsibilities of each dev team, than a pure technical choice. For me, both design patterns are necessary to enlarge our architectures possibilities. FYI, I'm experimenting with stevedore for a project: It's a plugins library based on entry points. If you know another library, I'm interested in. |
Also there is pluggy used by pytest internally. |
Subapplications are implemented by #1301 |
My plan is:
yarl.URL
as well as old goodstr
ResourceAdapter
andPlainRoute
/DynamicRoute
for sake of resources.The text was updated successfully, but these errors were encountered: