Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Reactive examples with Java, Project Reactor, and R2DBC

License

NotificationsYou must be signed in to change notification settings

mariadb-developers/reactive-programming-java-examples

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

License

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 theFlux 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).

Setting up the MariaDB database

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);

Support and Contribution

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

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Languages


[8]ページ先頭

©2009-2025 Movatter.jp