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

simulator run modes: [async/sync] #241

Merged
merged 5 commits into from
Mar 1, 2024

Conversation

bbortt
Copy link
Collaborator

@bbortt bbortt commented Feb 7, 2024

add "run modes" to the simulator:

  • sync allows only request-response simulations, because there is no additional thread
  • async allows intermediate messaging, if that is requried, uses an additional thread pool for simulations

@bbortt bbortt self-assigned this Feb 7, 2024
@bbortt bbortt changed the title scenario execution details Draft: scenario execution details Feb 7, 2024
@bbortt bbortt added Type: Enhancement IN PROGRESS Prio: Medium javascript Pull requests that update Javascript code labels Feb 7, 2024
@bbortt bbortt force-pushed the feat/simulator-modes branch from 9b125b2 to 7da5a64 Compare February 9, 2024 08:39
@bbortt bbortt changed the title Draft: scenario execution details Draft: simulator run modes Feb 9, 2024
@bbortt bbortt added java Pull requests that update Java code and removed IN PROGRESS javascript Pull requests that update Javascript code labels Feb 9, 2024
@bbortt
Copy link
Collaborator Author

bbortt commented Feb 9, 2024

@novarx interested in your opinion!

Copy link

@novarx novarx left a comment

Choose a reason for hiding this comment

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

Looks good - missing some tests 😉

@bbortt
Copy link
Collaborator Author

bbortt commented Feb 11, 2024

missing some tests 😉

yeah, didn't even know if this proves usable.. so, didn't bother.

@bbortt bbortt force-pushed the feat/simulator-modes branch 2 times, most recently from 2403382 to e1c40ea Compare February 13, 2024 21:52
@bbortt bbortt requested review from tschlat and novarx February 13, 2024 21:57
@bbortt bbortt changed the title Draft: simulator run modes simulator run modes: [async/sync] Feb 13, 2024
@bbortt bbortt requested review from christophd and novarx and removed request for novarx February 13, 2024 21:58
@bbortt bbortt force-pushed the feat/simulator-modes branch from e1c40ea to 940704a Compare February 15, 2024 21:32
@bbortt
Copy link
Collaborator Author

bbortt commented Feb 15, 2024

@christophd are you ok with this change? 🥇

@bbortt bbortt force-pushed the feat/simulator-modes branch from 940704a to 0bbc987 Compare February 28, 2024 13:05
@bbortt
Copy link
Collaborator Author

bbortt commented Feb 28, 2024

@christophd are you ok with this change? 🥇

note that we've beta tested this internally and fixed another two bugs in the process. I must sign this commits of tonight, before merging.

Signed-off-by: Timon Borter <timon.borter@gmx.ch>
bbortt added 4 commits March 1, 2024 08:09
the property `citrus.simulator.mode=[async/sync]` steers the mode
the simulator will use to execute simulations. note that while the
synchronous modus is simpler, it disallows the simulation of any
intermediate messaging with synchronous protocols.

Signed-off-by: Timon Borter <timon.borter@gmx.ch>
Signed-off-by: Timon Borter <timon.borter@gmx.ch>
Signed-off-by: Timon Borter <timon.borter@gmx.ch>
Signed-off-by: Timon Borter <timon.borter@gmx.ch>
@bbortt bbortt force-pushed the feat/simulator-modes branch from 0bbc987 to 0c23ed5 Compare March 1, 2024 07:09
@bbortt bbortt merged commit 842b814 into citrusframework:main Mar 1, 2024
6 checks passed
@bbortt bbortt deleted the feat/simulator-modes branch March 1, 2024 07:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
java Pull requests that update Java code Prio: Medium Type: Enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants