Skip to content
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

Conversation

pravinpushkar
Copy link
Contributor

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:

  • The quickstart code compiles correctly
  • You've tested new builds of the quickstart if you changed quickstart code
  • You've updated the quickstart's README if necessary
  • If you have changed the steps for a quickstart be sure that you have updated the automated validation accordingly. All of our quickstarts have annotations that allow them to be executed automatically as code. For more information see mechanical-markdown. For user guide with examples see Examples.

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
Copy link
Contributor

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.

Copy link
Contributor Author

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.

@amulyavarote
Copy link
Contributor

@pravinpushkar Can you please remove .mvn files from the PR. We dont merge .mvn files.

@pravinpushkar
Copy link
Contributor Author

@pravinpushkar Can you please remove .mvn files from the PR. We dont merge .mvn files.

done

@pravinpushkar pravinpushkar force-pushed the feature/java_http_pubsub_quickstarts branch 2 times, most recently from 93d1663 to 11a2240 Compare February 10, 2022 11:06
@pravinpushkar pravinpushkar force-pushed the feature/java_http_pubsub_quickstarts branch from 11a2240 to 5a6b909 Compare February 10, 2022 13:06
Copy link
Contributor

@paulyuk paulyuk left a 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.


@Getter
@Setter
public class SubscriptionData<T> {
Copy link
Contributor

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.

Copy link
Contributor Author

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]>
Copy link
Contributor

@paulyuk paulyuk left a 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

@artursouza artursouza closed this Feb 15, 2022
@artursouza artursouza force-pushed the feature/new_quickstarts branch from 2201192 to d799eb0 Compare February 15, 2022 00:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants