- Notifications
You must be signed in to change notification settings - Fork0
Reactive examples with Java, Project Reactor, and R2DBC
License
blackbeltcoder/reactive-programming-java-examples
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Learn about Reactive Programming in Java (watch thewebinar):
- Start withreactive-programming and see howone thread can successfullyserve 10users.
- Take a look atblocking-service to see a typical REST web service withJDBC connections.
- See how to use the
Flux
class andR2DBC to build afully reactive service. - Compare throughput usingArtillery. See how many HTTP 200 OK responses you get oneach service (test scripts included on each service project).
To run the experiments in this repository, you'll need a MariaDB database running on your machine with the following database and table:
CREATEDATABASEreactive;USE reactive;CREATETABLE `word` (`id`int(11)NOT NULL AUTO_INCREMENT,`text`varchar(64) DEFAULTNULL,PRIMARY KEY (`id`)) ENGINE=Aria;
Note: Aria is a storage engine for read-heavy workoads, but it has some limitations. Seethis blog post.
Insert or import test data into this table. For example, downloadthis CSV file and import it as follows:
LOAD DATA LOCAL INFILE'/path/to/words_pos.csv' IGNORE INTO TABLE word FIELDS TERMINATED BY',' LINES TERMINATED BY'\n' IGNORE0 LINES (@dummy,text)SETtext=UPPER(text);
Please feel free to submit PR's, issues or requests to this projectdirectly.
If you have any other questions, comments, or looking for more informationon MariaDB please check out:
Or reach out to us directly via:
About
Reactive examples with Java, Project Reactor, and R2DBC
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Releases
Packages0
Languages
- Java100.0%