Skip to content

basic streaming example for java #154

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

Merged
merged 6 commits into from
Jun 18, 2025
Merged

basic streaming example for java #154

merged 6 commits into from
Jun 18, 2025

Conversation

roryp
Copy link
Contributor

@roryp roryp commented Jun 18, 2025

Purpose

Describe the intention of the changes being proposed. What problem does it solve or functionality does it add?

Does this introduce a breaking change?

When developers merge from main and run the server, azd up, or azd deploy, will this produce an error?
If you're not sure, try it out on an old environment.

[ ] Yes
[X] No

Does this require changes to learn.microsoft.com docs or modules?

which includes deployment, settings and usage instructions.

[ ] Yes
[X] No

Type of change

[ ] Bugfix
[ ] Feature
[ ] Code style update (formatting, local variables)
[ ] Refactoring (no functional changes, no api changes)
[X] Documentation content changes
[ ] Other... Please describe:

roryp added 3 commits June 18, 2025 09:52
- Implement Calculator Server and Client applications
- Add Server-Sent Events (SSE) for streaming calculations
- Include Maven configuration for both server and client
- Provide detailed README with setup and usage instructions
@Copilot Copilot AI review requested due to automatic review settings June 18, 2025 08:17
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR introduces a basic streaming example for Java, demonstrating a calculator service built with Spring Boot WebFlux that streams calculation results via Server-Sent Events.

  • Added server configuration and a Spring Boot application with a calculation endpoint.
  • Implemented a client application using WebClient to consume the streaming endpoint.
  • Updated documentation (README.md files) to guide setup and usage.

Reviewed Changes

Copilot reviewed 10 out of 10 changed files in this pull request and generated no comments.

Show a summary per file
File Description
application.yml (calculator-server) Configures server port.
CalculatorServerApplication.java Bootstraps the Spring Boot server.
CalculatorController.java Implements the SSE-based calculation endpoint.
pom.xml (calculator-server) Maven configuration for the server.
application.yml (calculator-client) Sets client application configuration.
CalculatorClientApplication.java Implements the client using WebClient.
pom.xml (calculator-client) Maven configuration for the client.
README.md (java) Provides detailed instructions for the Java solution and demo.
README.md (solution) Lists available runtimes for the solution.
README.md (root) Includes embedded demonstration for Java streaming.
Comments suppressed due to low confidence (1)

03-GettingStarted/06-http-streaming/solution/README.md:4

  • There is a missing space after '-' which can affect markdown formatting. Update it to '- Java'.
 -[Java](./java/README.md)

@leestott leestott merged commit 2b31ae8 into microsoft:main Jun 18, 2025
1 check passed
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.

2 participants