-
-
Notifications
You must be signed in to change notification settings - Fork 413
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
feat: make RR embeddable in other programs #1214
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1214 +/- ##
==========================================
+ Coverage 43.00% 44.89% +1.88%
==========================================
Files 13 14 +1
Lines 658 715 +57
==========================================
+ Hits 283 321 +38
- Misses 354 367 +13
- Partials 21 27 +6
Continue to review full report at Codecov.
|
Hey @khepin 👋🏻 . Thanks for the PR. That is a good idea to have a RR embeddable in other apps. Some notes here:
|
EDIT: not needed. |
Ok, that was my bad idea to use a separate |
0fe8b6b
to
efea8cd
Compare
- fix error style - create module with own go.mod / go.sum
Signed-off-by: Seb <khepin@gmail.com>
Signed-off-by: Seb <khepin@gmail.com>
Signed-off-by: Seb <khepin@gmail.com>
Signed-off-by: Seb <khepin@gmail.com>
Signed-off-by: Seb <khepin@gmail.com>
Signed-off-by: Seb <khepin@gmail.com>
Signed-off-by: Seb <khepin@gmail.com>
- channel with the proper size Signed-off-by: Valery Piashchynski <piashchynski.valery@gmail.com>
Signed-off-by: Valery Piashchynski <piashchynski.valery@gmail.com>
Signed-off-by: Valery Piashchynski <piashchynski.valery@gmail.com>
Signed-off-by: Valery Piashchynski <piashchynski.valery@gmail.com>
Signed-off-by: Valery Piashchynski <piashchynski.valery@gmail.com>
Reason for This PR
Where I work, go based apps run inside a go service container. This is a set of middleware, libraries, framework like constructs that are shared across all go apps within the organization. It handles a great deal of authn / authz concerns, shipping logs to the right place, basic telemetry etc....
On the way out, it also enhances the response with some required headers.
To do all these things it assumes that it is first in line when an HTTP request arrives.
We're trying to enable PHP / RoadRunner apps in this infrastructure while still benefitting from the years of company specific work, built into this Go container. To do this we need to
*http.Request
instances to it and get the responsesLooking for feedback
At this point, I'm looking for feedback from the RR team on this. Because of this, I have not yet added documentation etc...
I would first like to validate that this approach is acceptable for the team before I put more effort into it.
Description of Changes
Changes here
roadrunner.RoadRunner
(to be changed?) that holds everything required to start and stop a roadrunner instance from code.rr serve
command is updated to make use of this new coderoadrunner.New
this allows the caller to hold on to some of the plugins that need to be accessed in other parts of the application.License Acceptance
By submitting this pull request, I confirm that my contribution is made under the terms of the MIT license.
PR Checklist
[Author TODO: Meet these criteria.]
[Reviewer TODO: Verify that these criteria are met. Request changes if not]
git commit -s
).CHANGELOG.md
.