-
Notifications
You must be signed in to change notification settings - Fork 530
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
code changes for pubsub using http request #527
code changes for pubsub using http request #527
Conversation
Adding HTTP quickstarts for Python and .NET (C#)
Signed-off-by: Nick Greenfield <[email protected]>
Signed-off-by: Nick Greenfield <[email protected]>
Signed-off-by: Nick Greenfield <[email protected]>
Signed-off-by: Nick Greenfield <[email protected]>
Add http example for JavaScript pubsub
Signed-off-by: Nick Greenfield <[email protected]>
Signed-off-by: Nick Greenfield <[email protected]>
Remove quickstarts that need to be redone
Signed-off-by: Pravin Pushkar <[email protected]>
pub_sub/java/http/checkout/src/main/java/com/service/CheckoutServiceApplication.java
Outdated
Show resolved
Hide resolved
pub_sub/java/http/checkout/src/main/java/com/service/CheckoutServiceApplication.java
Outdated
Show resolved
Hide resolved
pub_sub/java/http/README.md
Outdated
3. Run the Python subscriber app with Dapr: | ||
|
||
```bash | ||
dapr run --app-port 3000 --app-id order-processor --components-path ../../../components -- java -jar target/OrderProcessingService-0.0.1-SNAPSHOT.jar |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we should keep the --app-port consistent. We have 5001, 7001 in other two sdks. Let's decide on one port number.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For now I am changing it to default port (8080) exposed by tomcat which is used by spring boot applications.
We can change it to some common value but IMO I do not see it as an issue. Let us decide on this.
@pravinpushkar Can you please remove .mvn files from the PR. We dont merge .mvn files. |
done |
93d1663
to
11a2240
Compare
Signed-off-by: Pravin Pushkar <[email protected]>
11a2240
to
5a6b909
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice addition, thank you. I have just a few small consistency and other items for you here.
pub_sub/java/http/checkout/src/main/java/com/service/CheckoutServiceApplication.java
Outdated
Show resolved
Hide resolved
pub_sub/java/http/checkout/src/main/java/com/service/CheckoutServiceApplication.java
Outdated
Show resolved
Hide resolved
pub_sub/java/http/checkout/src/main/java/com/service/CheckoutServiceApplication.java
Outdated
Show resolved
Hide resolved
...p/order-processor/src/main/java/com/service/controller/OrderProcessingServiceController.java
Outdated
Show resolved
Hide resolved
...p/order-processor/src/main/java/com/service/controller/OrderProcessingServiceController.java
Show resolved
Hide resolved
...p/order-processor/src/main/java/com/service/controller/OrderProcessingServiceController.java
Show resolved
Hide resolved
|
||
@Getter | ||
@Setter | ||
public class SubscriptionData<T> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice. Unpacks a CloudEvent. Consider adding comments like C# version.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have provided comments in the form of javadoc. Let me know your thoughts.
Signed-off-by: Pravin Pushkar <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. thank you for contributions and addressing feedback
2201192
to
d799eb0
Compare
Signed-off-by: Pravin Pushkar [email protected]
Description
Code example for Java pubsub using Http request
Issue reference
We strive to have all PRs being opened based on an issue, where the problem or feature have been discussed prior to implementation.
Please reference the issue this PR will close: NA
Checklist
Please make sure you've completed the relevant tasks for this PR, out of the following list: