SlideShare a Scribd company logo
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. |
Asynchronous Database Access (ADBA)
#JJUG_CCC #ccc_g7
Akihiro Nishikawa
Oracle Corporation Japan
May 26, 2018
JDBC API
Copyright © 2018, Oracle and/or its affiliates. All rights reserved.
Safe Harbor Statement
The following is intended to outline our general product direction. It is intended for
information purposes only, and may not be incorporated into any contract. It is not a
commitment to deliver any material, code, or functionality, and should not be relied upon
in making purchasing decisions. The development, release, and timing of any features or
functionality described for Oracle’s products remains at the sole discretion of Oracle.
2
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. |
First of All...
3
Copyright © 2018, Oracle and/or its affiliates. All rights reserved.
NOTICE
• Today’s topic is now discussed actively.
• Everything is subject to change.
• This has not been in Java specifications yet.
4
Copyright © 2018, Oracle and/or its affiliates. All rights reserved.
Agenda
Introduction
Basic Concepts
More Concepts with Codes
Wrap up
1
2
3
4
5
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. |
Introduction
6
Copyright © 2018, Oracle and/or its affiliates. All rights reserved.
Nowadays...
• JDBC APIs are based on synchronous access.
• You might think it is no problem at all since you use pooled
connections.
7
!
Copyright © 2018, Oracle and/or its affiliates. All rights reserved.
But...
• What do you do if application requires high throughput?
• What if does the application run standalone as an AOT compiled
native image or a function?
8
!
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. 9
How about introducing
asynchronous paradigm
to database access?
Copyright © 2018, Oracle and/or its affiliates. All rights reserved.
Asynchronous Database Access (ADBA)
• Being developed by the JDBC Expert Group with community input
• Targeted for a near future release of Java
• Asynchronous apps have better throughput
– Fewer threads means less thread scheduling, less thread contention
– Database access is slow so blocked threads leave resources idle for a long time
– Simultaneous access to multiple databases (map/reduce, sharded databases, ...)
– Fire and forget (DML, stored procedures, ...)
10
Java standard database access API that never blocks user threads
Copyright © 2018, Oracle and/or its affiliates. All rights reserved.
Goals
• No user thread blocks
– Minimize the number of threads used for database access
• Alternate API for database access
– Not an extension of the standard JDBC API
– Not a replacement for the standard JDBC API
• Target high throughput apps
– Not a completely general purpose database access API
– The initial version will have a limited feature set
• Build on the Java SE class library
11
Copyright © 2018, Oracle and/or its affiliates. All rights reserved.
Goals
• No user thread blocks
– Minimize the number of threads used for database access
• Alternate API for database access
– Not an extension of the standard JDBC API
– Not a replacement for the standard JDBC API
• Target high throughput apps
– Not a completely general purpose database access API
– The initial version will have a limited feature set
• Build on the Java SE class library
12
Neither replacement
nor enhancement,
but complementary
Copyright © 2018, Oracle and/or its affiliates. All rights reserved.
Design choices
• Minimal or no reference to java.sql
• Rigorous use of types
• Builder pattern
• Fluent API
• Immutable after initialization
• One way to do something is enough
• Avoid SQL processing
• Avoid callback hell
13
Copyright © 2018, Oracle and/or its affiliates. All rights reserved.
ADBA (Asynchronous Database Access)
• Package
–java.sql2 (jdk.incubator.sql2)
• Module
–jdk.adba (jdk.incubator.adba)
[Note]
• Implementation-specific features are out of scope of this session.
– Statement cache
– Connection cache...
14
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. 15
We have lots of ways to
access databases
asynchronously, don’t we?
Copyright © 2018, Oracle and/or its affiliates. All rights reserved.
What About... ?
• Streams
– Java streams are inherently synchronous
• Reactive Streams
– Not integrated into the Java SE class library
• Node.js
– JavaScript... (Indeed this runs on Graal VM, but...)
• ADBCJ - Asynchronous Database Connectivity in Java (ADBCJ)
https://code.google.com/archive/p/adbcj/
16
There are already multiple asynchronous/non-blocking Java and JavaScript APIs...
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. |
Basic Concepts
17
Copyright © 2018, Oracle and/or its affiliates. All rights reserved.
CompletionStage & CompletableFuture
• Java class library mechanism for asynchronous style programming
– Brings reactive programming to Java
– Enables the composition of asynchronous tasks
– A task has a state and it might be...
• running
• completed normally with a result
• completed exception all with an exception
– Event thread : the result of the completion is pushed to dependent tasks
• Push model à higher scalability than pull or poll
• Supports lambda expressions and fluent programming
18
Copyright © 2018, Oracle and/or its affiliates. All rights reserved.
Execution Model (1/2)
• Operation consists of a result and a CompletionStage
• SQL or other database operation
• Parameter assignments
• Result handling
• Submission and CompletableFuture
19
Everything is an Operation
Copyright © 2018, Oracle and/or its affiliates. All rights reserved.
Execution Model (2/2)
• User thread creates and submits Operations
– User thread is never blocked when creating and submitting Operations.
• Implementation executes those Operations asynchronously
– Performs round trip(s) to the database
– Executes result handling
– Completes CompletableFutures
20
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. |
More concepts with Codes
21
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. 22
public void trivialInsert(DataSource ds) {
String sql = "insert into tab values (:id, :name, :answer)";
try (Connection conn = ds.getConnection()) {
conn.countOperation(sql)
.set("id", 1, AdbaType.NUMERIC)
.set("name", "Deep Thought", AdbaType.VARCHAR)
.set("answer", 42, AdbaType.NUMERIC)
.submit();
}
}
Trivial Insert
Copyright © 2018, Oracle and/or its affiliates. All rights reserved.
All SQL is Vendor Specific
• No escape sequences
• No specified parameter markers
• Non vendor specific syntax requires processing by the driver
– Adds overhead
– Increases code complexity
– Minimal benefit as most apps are tied to a specific database regardless
23
Copyright © 2018, Oracle and/or its affiliates. All rights reserved.
All SQL is Vendor Specific
• DB2 (:foo)
• MySQL (?)
• Oracle Database (:foo)
• PostgresSQL ($1)
• SQL Server (@foo)
24
Note: Code examples use parameter markers from a variety of databases.
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. 25
public void trivialSelect(DataSource ds, List<Integer> result) {
String sql = "select id, name, answer from tab where answer = $1";
try (Connection conn = ds.getConnection()) {
conn.<List<Integer>>rowOperation(sql)
.set("1", 42, AdbaType.NUMERIC)
.collect((ignore, row) -> {
result.add(row.get("id", Integer.class));
return null;
})
.submit();
}
}
Trivial Select
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. 26
public DataSource getDataSource(String url, String user, String pass) {
return DataSourceFactory.forName("Oracle Database")
.builder()
.url("jdbc:oracle:nonblocking:@//ccc18.example.org:5521/ccc18")
.username("scott")
.password("tiger")
.connectionProperty(AdbaConnectionProperty.TRANSACTION_ISOLATION,
AdbaConnectionProperty.TransactionIsolation.SERIALIZABLE)
.connectionProperty(NLS_LANGUAGE, "Japanese")
.build();
}
ConnectionProperties
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. 27
in interface DataSource:
public default Connection getConnection() {
return builder().build().connect();
}
in interface Connection:
public default Connection connect() {
holdForMoreMembers();
submit();
connectOperation().submit();
return this;
}
Getting Connection
Copyright © 2018, Oracle and/or its affiliates. All rights reserved.
Connection Pooling
in interface Connection:
public Connection activate();
public Connection deactivate();
public registerLifecycleListener(LifecycleListener listener);
28
If you remove registered LifecycleListener, call deregisterLifecycleListener()
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. 29
public Future<Integer> selectIdForAnswer(DataSource ds, int answer) {
String sql = "select id, name, answer from tab where answer = @target";
try (Connection conn = ds.getConnection()) {
return conn.<List<Integer>>rowOperation(sql)
.set("target", 42, AdbaType.NUMERIC)
.collect((list, row) -> {
list.add(row.get("id", Integer.class));
return list; }
)
.submit()
.toCompletableFuture()
.thenApply(l -> l.get(0));
}
}
Basic SELECT
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. 30
public class Item {
protected int id;
protected String name;
protected int answer;
@SqlColumns({"ID", "USER", "RESPONSE"})
public Item(int id, String name, int answer) {
this.id = id;
this.name = name;
this.answer = answer;
}
@SqlParameter(marker = "id", sqlType = "NUMERIC")
public int getId() {
return id;
}
(cont.)
POJOs (1/2)
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. 31
(cont.)
@SqlParameter(marker = "name", sqlType = "VARCHAR")
public String getName() {
return name;
}
@SqlParameter(marker = "answer", sqlType = "NUMERIC")
public int getAnswer() {
return answer;
}
}
POJOs (2/2)
Copyright © 2018, Oracle and/or its affiliates. All rights reserved.
OperationGroup (1/2)
• OperationGroup has its own result handling and CompletableFuture
• Members submitted to group.OperationGroup is submitted as a unit
• Execution Order
– Default : Sequential in order submitted
– parallel() : should be marked if having member Operations executed in any order
including in parallel.
32
group of Operations
Copyright © 2018, Oracle and/or its affiliates. All rights reserved.
OperationGroup (1/2)
• Error response
– Default : Skip remaining group members if failure of one member Operation
happens. (with a SqlSkippedException with the cause set to the original exception).
– independent(): should be marked if remaining group members unaffected
• Conditional or unconditional
• Connection is an OperationGroup
– Sequential, dependent, unconditional by default
33
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. 34
public void insertListHold(List<Item> list, DataSource ds) {
String sql = "insert into tab values (@elem_id, @elem_name, @elem_answer)";
try (Connection conn = ds.getConnection()) {
OperationGroup group = conn.operationGroup().independent();
group.submitHoldingForMoreMembers();
for (Item elem : list) {
group.countOperation(sql)
.set("elem_", elem).submit().getCompletionStage()
.exceptionally(t -> {
System.out.println(elem.getId());
return null;
});
}
group.releaseProhibitingMoreMembers();
}
}
Independent INSERT
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. 35
public void deposit(Connection conn, int accountId, double amount) {
String selectSql = "select balance from account where id = $1";
CompletableFuture<Double> newBalanceF =
conn.<Double>rowOperation(selectSql)
.set("1", accountId, AdbaType.INTEGER)
.collect((p, row) -> row.get("balance", Double.class))
.submit()
.toCompletableFuture()
.thenApply(b -> b + amount);
String updateSql = "update account set balance=$2 where id = $1";
conn.countOperation(updateSql).set("1", accountId, AdbaType.INTEGER)
.set("2", newBalanceF, AdbaType.DOUBLE)
.submit();
}
Future Parameters
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. 36
public void updateListParallel(List<Item> list, DataSource ds) {
String query = "select id from tab where answer = ?";
String update = "update tab set answer = ? where id = ?";
try (Connection conn = ds.getConnection()) {
OperationGroup<Object, Object> group =
conn.operationGroup()
.independent()
.parallel();
group.submitHoldingForMoreMembers();
(cont.)
Parallel UPDATE (1/3)
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. 37
(cont.)
for (Item elem : list) {
CompletableFuture<Integer> idF
= group.<Integer>rowOperation(query)
.set("1", elem.getAnswer(), AdbaType.NUMERIC)
.collect((ignore, row) -> {
return row.get("id", Integer.class);
})
.submit()
.toCompletableFuture();
(cont.)
Parallel UPDATE (2/3)
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. 38
(cont.)
group.countOperation(update).set("1", idF)
.set("2", "42")
.submit()
.getCompletionStage()
.exceptionally(t -> {
System.out.println("Update failed: " + elem.getId());
return null;
});
}
group.releaseProhibitingMoreMembers();
}
}
Parallel UPDATE (3/3)
Copyright © 2018, Oracle and/or its affiliates. All rights reserved.
Close
in interface Connection:
public default void close() {
closeOperation().submit();
releaseProhibitingMoreMembers();
}
39
CloseOperation is never skipped.
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. 40
public static class NlsLanguageProperty implements ConnectionProperty {
public static final ConnectionProperty NLS_LANGUAGE
= new NlsLanguageProperty();
private NlsLanguageProperty() {
}
public String name() {
return "NLS_LANGUAGE";
}
public Class range() {
return String.class;
}
ConnectionProperty (1/2)
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. 41
public String defaultValue() {
return "American";
}
public boolean isSensitive() {
return false;
}
public Operation configureOperation(OperationGroup group, Object value) {
String sql = "ALTER SESSION SET NLS_LANGUAGE TO " + value;
return group.operation(sql);
}
}
ConnectionProperty (2/2)
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. 42
@SqlStruct(sqlTypeName = "STUDENT", fields = {
@SqlStruct.Field(sqlFieldName = "NAME", sqlTypeName = "VARCHAR(100)",
javaFieldName = "name"),
@SqlStruct.Field(sqlFieldName = "EMAIL", sqlTypeName = "VARCHAR(100)",
javaFieldName = "email")
})
public class Student {
String name;
String email;
...
}
@SqlArray(elementSqlTypeName = "STUDENT")
public class Roster extends LinkedList<Student> {
public Roster() {}
}
ARRAYs and STRUCTs
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. 43
public void transfer(Connection conn, double amount,
int fromAccount, int toAccount) {
String sql = "update account set balance=balance+@amount where id = @account";
conn.countOperation(sql)
.set("amount", -amount, AdbaType.DECIMAL)
.set("account", fromAccount, AdbaType.INTEGER)
.submit();
conn.countOperation(sql)
.set("amount", amount, AdbaType.DECIMAL)
.set("account", toAccount, AdbaType.INTEGER)
.submit();
conn.commit();
}
Transactions (1/2)
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. 44
public void transfer(Connection conn, double amount,
int fromAccount, int toAccount) {
String sql = "update account set balance=balance+@amount where id = @account";
final Transaction tran = conn.transaction();
conn.countOperation(sql)
.set("amount", -amount, AdbaType.DECIMAL)
.set("account", fromAccount, AdbaType.INTEGER)
.onError( e -> tran.setRollbackOnly() )
.submit();
conn.countOperation(sql)
.set("amount", amount, AdbaType.DECIMAL)
.set("account", toAccount, AdbaType.INTEGER)
.onError( e -> tran.setRollbackOnly() )
.submit();
conn.commit();
}
Transactions (2/2)
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. 45
public void paycheck(Connection conn, Employee emp) {
String sql = "call generate_paycheck(?, ?)";
CompletableFuture<CheckDetail> details = conn.<CheckDetail>outOperation(sql)
.set("1", emp, AdbaType.STRUCT)
.outParameter("2", AdbaType.STRUCT)
.resultProcessor(m -> m.get("2", CheckDetail.class))
.submit()
.toCompletableFuture();
(cont.)
Local Operations (1/2)
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. 46
(cont.)
conn.localOperation()
.onExecution(() -> {
printPaycheck(details);
return null;
})
.submit()
.toCompletableFuture()
.thenRun(() -> reportPrintSuccess(details))
.exceptionally(t -> {
reportPrintFailure(details);
return null;
});
}
Local Operations (2/2)
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. |
Wrap up
47
Copyright © 2018, Oracle and/or its affiliates. All rights reserved.
Key takeaways
• Asynchronous
• Geared toward high-throughput programs
• Does not attempt to support every database feature
• Does not attempt to abstract the database
• Uses the builder pattern
• Supports the fluent programming style
48
Copyright © 2018, Oracle and/or its affiliates. All rights reserved.
Status
• Now developed by the JDBC Expert Group through the Java Community
Process
• Targeted for a near future release of Java
• Send feedback to jdbc-spec-discuss@openjdk.java.net
49
Everything is subject to change!
Copyright © 2018, Oracle and/or its affiliates. All rights reserved.
Resources
• Available for download from OpenJDK
http://oracle.com/goto/java-async-db
• AoJ (ADBA over JDBC) [JDK 9 or later is required]
https://github.com/oracle/oracle-db-examples/tree/master/java/AoJ
• JavaDoc
http://cr.openjdk.java.net/~lancea/8188051/apidoc/jdk.incubator.adba-summary.html
50
Copyright © 2018, Oracle and/or its affiliates. All rights reserved.
Safe Harbor Statement
The preceding is intended to outline our general product direction. It is intended for
information purposes only, and may not be incorporated into any contract. It is not a
commitment to deliver any material, code, or functionality, and should not be relied upon
in making purchasing decisions. The development, release, and timing of any features or
functionality described for Oracle’s products remains at the sole discretion of Oracle.
51
ADBA (Asynchronous Database Access)

More Related Content

What's hot

Hibernate
HibernateHibernate
Hibernate
Ajay K
 
Oracle ADF Architecture TV - Design - Task Flow Transaction Options
Oracle ADF Architecture TV - Design - Task Flow Transaction OptionsOracle ADF Architecture TV - Design - Task Flow Transaction Options
Oracle ADF Architecture TV - Design - Task Flow Transaction Options
Chris Muir
 
Oracle ADF Architecture TV - Design - Task Flow Communication Pattern
Oracle ADF Architecture TV - Design - Task Flow Communication PatternOracle ADF Architecture TV - Design - Task Flow Communication Pattern
Oracle ADF Architecture TV - Design - Task Flow Communication Pattern
Chris Muir
 
OEM12c, DB12c and You! - RMOUG TD2014 Edition
OEM12c, DB12c and You! - RMOUG TD2014 EditionOEM12c, DB12c and You! - RMOUG TD2014 Edition
OEM12c, DB12c and You! - RMOUG TD2014 Edition
Bobby Curtis
 
Oracle ADF Architecture TV - Design - Task Flow Overview
Oracle ADF Architecture TV - Design - Task Flow OverviewOracle ADF Architecture TV - Design - Task Flow Overview
Oracle ADF Architecture TV - Design - Task Flow Overview
Chris Muir
 
Hibernate tutorial for beginners
Hibernate tutorial for beginnersHibernate tutorial for beginners
Hibernate tutorial for beginners
Rahul Jain
 
Dimensional modeling in oracle sql developer
Dimensional modeling in oracle sql developerDimensional modeling in oracle sql developer
Dimensional modeling in oracle sql developer
Jeff Smith
 
Oracle ADF Architecture TV - Design - Service Integration Architectures
Oracle ADF Architecture TV - Design - Service Integration ArchitecturesOracle ADF Architecture TV - Design - Service Integration Architectures
Oracle ADF Architecture TV - Design - Service Integration Architectures
Chris Muir
 
Database@Home : Data Driven Apps - Data-driven Microservices Architecture wit...
Database@Home : Data Driven Apps - Data-driven Microservices Architecture wit...Database@Home : Data Driven Apps - Data-driven Microservices Architecture wit...
Database@Home : Data Driven Apps - Data-driven Microservices Architecture wit...
Tammy Bednar
 
Enable GoldenGate Monitoring with OEM 12c/JAgent
Enable GoldenGate Monitoring with OEM 12c/JAgentEnable GoldenGate Monitoring with OEM 12c/JAgent
Enable GoldenGate Monitoring with OEM 12c/JAgent
Bobby Curtis
 
Oracle ADF Architecture TV - Design - Task Flow Navigation Options
Oracle ADF Architecture TV - Design - Task Flow Navigation OptionsOracle ADF Architecture TV - Design - Task Flow Navigation Options
Oracle ADF Architecture TV - Design - Task Flow Navigation Options
Chris Muir
 
Oracle ADF Architecture TV - Design - ADF Service Architectures
Oracle ADF Architecture TV - Design - ADF Service ArchitecturesOracle ADF Architecture TV - Design - ADF Service Architectures
Oracle ADF Architecture TV - Design - ADF Service Architectures
Chris Muir
 
Database@Home : The Future is Data Driven
Database@Home : The Future is Data DrivenDatabase@Home : The Future is Data Driven
Database@Home : The Future is Data Driven
Tammy Bednar
 
Oracle ADF Architecture TV - Development - Error Handling
Oracle ADF Architecture TV - Development - Error HandlingOracle ADF Architecture TV - Development - Error Handling
Oracle ADF Architecture TV - Development - Error Handling
Chris Muir
 
Oracle ADF Architecture TV - Design - Usability and Layout Design
Oracle ADF Architecture TV - Design - Usability and Layout DesignOracle ADF Architecture TV - Design - Usability and Layout Design
Oracle ADF Architecture TV - Design - Usability and Layout Design
Chris Muir
 
Oracle ADF Architecture TV - Design - Application Customization and MDS
Oracle ADF Architecture TV - Design - Application Customization and MDSOracle ADF Architecture TV - Design - Application Customization and MDS
Oracle ADF Architecture TV - Design - Application Customization and MDS
Chris Muir
 
Oracle data integrator (odi) online training
Oracle data integrator (odi) online trainingOracle data integrator (odi) online training
Oracle data integrator (odi) online training
Glory IT Technologies Pvt. Ltd.
 
JavaOne 2014 Java EE 8 Booth Slides
JavaOne 2014 Java EE 8 Booth SlidesJavaOne 2014 Java EE 8 Booth Slides
JavaOne 2014 Java EE 8 Booth Slides
Edward Burns
 
IOUG Data Integration SIG w/ Oracle GoldenGate Solutions and Configuration
IOUG Data Integration SIG w/ Oracle GoldenGate Solutions and ConfigurationIOUG Data Integration SIG w/ Oracle GoldenGate Solutions and Configuration
IOUG Data Integration SIG w/ Oracle GoldenGate Solutions and Configuration
Bobby Curtis
 
Odi ireland rittman
Odi ireland rittmanOdi ireland rittman
Odi ireland rittman
Pavankumartalla
 

What's hot (20)

Hibernate
HibernateHibernate
Hibernate
 
Oracle ADF Architecture TV - Design - Task Flow Transaction Options
Oracle ADF Architecture TV - Design - Task Flow Transaction OptionsOracle ADF Architecture TV - Design - Task Flow Transaction Options
Oracle ADF Architecture TV - Design - Task Flow Transaction Options
 
Oracle ADF Architecture TV - Design - Task Flow Communication Pattern
Oracle ADF Architecture TV - Design - Task Flow Communication PatternOracle ADF Architecture TV - Design - Task Flow Communication Pattern
Oracle ADF Architecture TV - Design - Task Flow Communication Pattern
 
OEM12c, DB12c and You! - RMOUG TD2014 Edition
OEM12c, DB12c and You! - RMOUG TD2014 EditionOEM12c, DB12c and You! - RMOUG TD2014 Edition
OEM12c, DB12c and You! - RMOUG TD2014 Edition
 
Oracle ADF Architecture TV - Design - Task Flow Overview
Oracle ADF Architecture TV - Design - Task Flow OverviewOracle ADF Architecture TV - Design - Task Flow Overview
Oracle ADF Architecture TV - Design - Task Flow Overview
 
Hibernate tutorial for beginners
Hibernate tutorial for beginnersHibernate tutorial for beginners
Hibernate tutorial for beginners
 
Dimensional modeling in oracle sql developer
Dimensional modeling in oracle sql developerDimensional modeling in oracle sql developer
Dimensional modeling in oracle sql developer
 
Oracle ADF Architecture TV - Design - Service Integration Architectures
Oracle ADF Architecture TV - Design - Service Integration ArchitecturesOracle ADF Architecture TV - Design - Service Integration Architectures
Oracle ADF Architecture TV - Design - Service Integration Architectures
 
Database@Home : Data Driven Apps - Data-driven Microservices Architecture wit...
Database@Home : Data Driven Apps - Data-driven Microservices Architecture wit...Database@Home : Data Driven Apps - Data-driven Microservices Architecture wit...
Database@Home : Data Driven Apps - Data-driven Microservices Architecture wit...
 
Enable GoldenGate Monitoring with OEM 12c/JAgent
Enable GoldenGate Monitoring with OEM 12c/JAgentEnable GoldenGate Monitoring with OEM 12c/JAgent
Enable GoldenGate Monitoring with OEM 12c/JAgent
 
Oracle ADF Architecture TV - Design - Task Flow Navigation Options
Oracle ADF Architecture TV - Design - Task Flow Navigation OptionsOracle ADF Architecture TV - Design - Task Flow Navigation Options
Oracle ADF Architecture TV - Design - Task Flow Navigation Options
 
Oracle ADF Architecture TV - Design - ADF Service Architectures
Oracle ADF Architecture TV - Design - ADF Service ArchitecturesOracle ADF Architecture TV - Design - ADF Service Architectures
Oracle ADF Architecture TV - Design - ADF Service Architectures
 
Database@Home : The Future is Data Driven
Database@Home : The Future is Data DrivenDatabase@Home : The Future is Data Driven
Database@Home : The Future is Data Driven
 
Oracle ADF Architecture TV - Development - Error Handling
Oracle ADF Architecture TV - Development - Error HandlingOracle ADF Architecture TV - Development - Error Handling
Oracle ADF Architecture TV - Development - Error Handling
 
Oracle ADF Architecture TV - Design - Usability and Layout Design
Oracle ADF Architecture TV - Design - Usability and Layout DesignOracle ADF Architecture TV - Design - Usability and Layout Design
Oracle ADF Architecture TV - Design - Usability and Layout Design
 
Oracle ADF Architecture TV - Design - Application Customization and MDS
Oracle ADF Architecture TV - Design - Application Customization and MDSOracle ADF Architecture TV - Design - Application Customization and MDS
Oracle ADF Architecture TV - Design - Application Customization and MDS
 
Oracle data integrator (odi) online training
Oracle data integrator (odi) online trainingOracle data integrator (odi) online training
Oracle data integrator (odi) online training
 
JavaOne 2014 Java EE 8 Booth Slides
JavaOne 2014 Java EE 8 Booth SlidesJavaOne 2014 Java EE 8 Booth Slides
JavaOne 2014 Java EE 8 Booth Slides
 
IOUG Data Integration SIG w/ Oracle GoldenGate Solutions and Configuration
IOUG Data Integration SIG w/ Oracle GoldenGate Solutions and ConfigurationIOUG Data Integration SIG w/ Oracle GoldenGate Solutions and Configuration
IOUG Data Integration SIG w/ Oracle GoldenGate Solutions and Configuration
 
Odi ireland rittman
Odi ireland rittmanOdi ireland rittman
Odi ireland rittman
 

Similar to ADBA (Asynchronous Database Access)

Reactive Java Programming: A new Asynchronous Database Access API by Kuassi M...
Reactive Java Programming: A new Asynchronous Database Access API by Kuassi M...Reactive Java Programming: A new Asynchronous Database Access API by Kuassi M...
Reactive Java Programming: A new Asynchronous Database Access API by Kuassi M...
Oracle Developers
 
MySQL Shell: The DevOps Tool for MySQL
MySQL Shell: The DevOps Tool for MySQLMySQL Shell: The DevOps Tool for MySQL
MySQL Shell: The DevOps Tool for MySQL
Miguel Araújo
 
Connector/J Beyond JDBC: the X DevAPI for Java and MySQL as a Document Store
Connector/J Beyond JDBC: the X DevAPI for Java and MySQL as a Document StoreConnector/J Beyond JDBC: the X DevAPI for Java and MySQL as a Document Store
Connector/J Beyond JDBC: the X DevAPI for Java and MySQL as a Document Store
Filipe Silva
 
Oracle GoldenGate Performance Tuning
Oracle GoldenGate Performance TuningOracle GoldenGate Performance Tuning
Oracle GoldenGate Performance Tuning
Bobby Curtis
 
MySQL Document Store - A Document Store with all the benefts of a Transactona...
MySQL Document Store - A Document Store with all the benefts of a Transactona...MySQL Document Store - A Document Store with all the benefts of a Transactona...
MySQL Document Store - A Document Store with all the benefts of a Transactona...
Olivier DASINI
 
Project Helidon Overview (Japanese)
Project Helidon Overview (Japanese)Project Helidon Overview (Japanese)
Project Helidon Overview (Japanese)
Logico
 
MySQL Document Store and Node.JS
MySQL Document Store and Node.JSMySQL Document Store and Node.JS
MySQL Document Store and Node.JS
Reggie Burnett
 
JAX-RS 2.0: RESTful Web Services
JAX-RS 2.0: RESTful Web ServicesJAX-RS 2.0: RESTful Web Services
JAX-RS 2.0: RESTful Web Services
Arun Gupta
 
MySQL 8 loves JavaScript
MySQL 8 loves JavaScript MySQL 8 loves JavaScript
MySQL 8 loves JavaScript
Sanjay Manwani
 
Node.js and the MySQL Document Store
Node.js and the MySQL Document StoreNode.js and the MySQL Document Store
Node.js and the MySQL Document Store
Rui Quelhas
 
MySQL Day Paris 2018 - What’s New in MySQL 8.0 ?
MySQL Day Paris 2018 - What’s New in MySQL 8.0 ?MySQL Day Paris 2018 - What’s New in MySQL 8.0 ?
MySQL Day Paris 2018 - What’s New in MySQL 8.0 ?
Olivier DASINI
 
MySQL Shell: the daily tool for devs and admins. By Vittorio Cioe.
MySQL Shell: the daily tool for devs and admins. By Vittorio Cioe.MySQL Shell: the daily tool for devs and admins. By Vittorio Cioe.
MySQL Shell: the daily tool for devs and admins. By Vittorio Cioe.
Cloud Native Day Tel Aviv
 
Hit Refresh with Oracle GoldenGate Microservices
Hit Refresh with Oracle GoldenGate MicroservicesHit Refresh with Oracle GoldenGate Microservices
Hit Refresh with Oracle GoldenGate Microservices
Bobby Curtis
 
Oracle goldegate microservice
Oracle goldegate microserviceOracle goldegate microservice
Oracle goldegate microservice
Mojtaba Khandan
 
Beyond SQL Tuning: Insider's Guide to Maximizing SQL Performance
Beyond SQL Tuning: Insider's Guide to Maximizing SQL PerformanceBeyond SQL Tuning: Insider's Guide to Maximizing SQL Performance
Beyond SQL Tuning: Insider's Guide to Maximizing SQL Performance
Ashish Agrawal
 
Novinky v Oracle Database 18c
Novinky v Oracle Database 18cNovinky v Oracle Database 18c
Novinky v Oracle Database 18c
MarketingArrowECS_CZ
 
Serverless Java - Challenges and Triumphs
Serverless Java - Challenges and TriumphsServerless Java - Challenges and Triumphs
Serverless Java - Challenges and Triumphs
David Delabassee
 
NoSQL and MySQL
NoSQL and MySQLNoSQL and MySQL
NoSQL and MySQL
Ted Wennmark
 
Node.js and Oracle Database: New Development Techniques
Node.js and Oracle Database: New Development TechniquesNode.js and Oracle Database: New Development Techniques
Node.js and Oracle Database: New Development Techniques
Christopher Jones
 
Oracle Database 19c - poslední z rodiny 12.2 a co přináší nového
Oracle Database 19c - poslední z rodiny 12.2 a co přináší novéhoOracle Database 19c - poslední z rodiny 12.2 a co přináší nového
Oracle Database 19c - poslední z rodiny 12.2 a co přináší nového
MarketingArrowECS_CZ
 

Similar to ADBA (Asynchronous Database Access) (20)

Reactive Java Programming: A new Asynchronous Database Access API by Kuassi M...
Reactive Java Programming: A new Asynchronous Database Access API by Kuassi M...Reactive Java Programming: A new Asynchronous Database Access API by Kuassi M...
Reactive Java Programming: A new Asynchronous Database Access API by Kuassi M...
 
MySQL Shell: The DevOps Tool for MySQL
MySQL Shell: The DevOps Tool for MySQLMySQL Shell: The DevOps Tool for MySQL
MySQL Shell: The DevOps Tool for MySQL
 
Connector/J Beyond JDBC: the X DevAPI for Java and MySQL as a Document Store
Connector/J Beyond JDBC: the X DevAPI for Java and MySQL as a Document StoreConnector/J Beyond JDBC: the X DevAPI for Java and MySQL as a Document Store
Connector/J Beyond JDBC: the X DevAPI for Java and MySQL as a Document Store
 
Oracle GoldenGate Performance Tuning
Oracle GoldenGate Performance TuningOracle GoldenGate Performance Tuning
Oracle GoldenGate Performance Tuning
 
MySQL Document Store - A Document Store with all the benefts of a Transactona...
MySQL Document Store - A Document Store with all the benefts of a Transactona...MySQL Document Store - A Document Store with all the benefts of a Transactona...
MySQL Document Store - A Document Store with all the benefts of a Transactona...
 
Project Helidon Overview (Japanese)
Project Helidon Overview (Japanese)Project Helidon Overview (Japanese)
Project Helidon Overview (Japanese)
 
MySQL Document Store and Node.JS
MySQL Document Store and Node.JSMySQL Document Store and Node.JS
MySQL Document Store and Node.JS
 
JAX-RS 2.0: RESTful Web Services
JAX-RS 2.0: RESTful Web ServicesJAX-RS 2.0: RESTful Web Services
JAX-RS 2.0: RESTful Web Services
 
MySQL 8 loves JavaScript
MySQL 8 loves JavaScript MySQL 8 loves JavaScript
MySQL 8 loves JavaScript
 
Node.js and the MySQL Document Store
Node.js and the MySQL Document StoreNode.js and the MySQL Document Store
Node.js and the MySQL Document Store
 
MySQL Day Paris 2018 - What’s New in MySQL 8.0 ?
MySQL Day Paris 2018 - What’s New in MySQL 8.0 ?MySQL Day Paris 2018 - What’s New in MySQL 8.0 ?
MySQL Day Paris 2018 - What’s New in MySQL 8.0 ?
 
MySQL Shell: the daily tool for devs and admins. By Vittorio Cioe.
MySQL Shell: the daily tool for devs and admins. By Vittorio Cioe.MySQL Shell: the daily tool for devs and admins. By Vittorio Cioe.
MySQL Shell: the daily tool for devs and admins. By Vittorio Cioe.
 
Hit Refresh with Oracle GoldenGate Microservices
Hit Refresh with Oracle GoldenGate MicroservicesHit Refresh with Oracle GoldenGate Microservices
Hit Refresh with Oracle GoldenGate Microservices
 
Oracle goldegate microservice
Oracle goldegate microserviceOracle goldegate microservice
Oracle goldegate microservice
 
Beyond SQL Tuning: Insider's Guide to Maximizing SQL Performance
Beyond SQL Tuning: Insider's Guide to Maximizing SQL PerformanceBeyond SQL Tuning: Insider's Guide to Maximizing SQL Performance
Beyond SQL Tuning: Insider's Guide to Maximizing SQL Performance
 
Novinky v Oracle Database 18c
Novinky v Oracle Database 18cNovinky v Oracle Database 18c
Novinky v Oracle Database 18c
 
Serverless Java - Challenges and Triumphs
Serverless Java - Challenges and TriumphsServerless Java - Challenges and Triumphs
Serverless Java - Challenges and Triumphs
 
NoSQL and MySQL
NoSQL and MySQLNoSQL and MySQL
NoSQL and MySQL
 
Node.js and Oracle Database: New Development Techniques
Node.js and Oracle Database: New Development TechniquesNode.js and Oracle Database: New Development Techniques
Node.js and Oracle Database: New Development Techniques
 
Oracle Database 19c - poslední z rodiny 12.2 a co přináší nového
Oracle Database 19c - poslední z rodiny 12.2 a co přináší novéhoOracle Database 19c - poslední z rodiny 12.2 a co přináší nového
Oracle Database 19c - poslední z rodiny 12.2 a co přináší nového
 

More from Logico

Welcome, Java 15! (Japanese)
Welcome, Java 15! (Japanese)Welcome, Java 15! (Japanese)
Welcome, Java 15! (Japanese)
Logico
 
Look into Project Valhalla from CLR viewpoint
Look into Project Valhalla from CLR viewpointLook into Project Valhalla from CLR viewpoint
Look into Project Valhalla from CLR viewpoint
Logico
 
Jvmls 2019 feedback valhalla update
Jvmls 2019 feedback   valhalla updateJvmls 2019 feedback   valhalla update
Jvmls 2019 feedback valhalla update
Logico
 
Oracle Code One 2018 Feedback (Server Side / Japanese)
Oracle Code One 2018 Feedback (Server Side / Japanese)Oracle Code One 2018 Feedback (Server Side / Japanese)
Oracle Code One 2018 Feedback (Server Side / Japanese)
Logico
 
Java EE 8 Overview (Japanese)
Java EE 8 Overview (Japanese)Java EE 8 Overview (Japanese)
Java EE 8 Overview (Japanese)
Logico
 
Another compilation method in java - AOT (Ahead of Time) compilation
Another compilation method in java - AOT (Ahead of Time) compilationAnother compilation method in java - AOT (Ahead of Time) compilation
Another compilation method in java - AOT (Ahead of Time) compilation
Logico
 
Polyglot on the JVM with Graal (English)
Polyglot on the JVM with Graal (English)Polyglot on the JVM with Graal (English)
Polyglot on the JVM with Graal (English)
Logico
 
CDI 2.0 (JSR 365) - Java Day Tokyo 2017 (English)
CDI 2.0 (JSR 365) - Java Day Tokyo 2017 (English)CDI 2.0 (JSR 365) - Java Day Tokyo 2017 (English)
CDI 2.0 (JSR 365) - Java Day Tokyo 2017 (English)
Logico
 
Polyglot on the JVM with Graal (Japanese)
Polyglot on the JVM with Graal (Japanese)Polyglot on the JVM with Graal (Japanese)
Polyglot on the JVM with Graal (Japanese)
Logico
 
Nashorn in the future (Japanese)
Nashorn in the future (Japanese)Nashorn in the future (Japanese)
Nashorn in the future (Japanese)
Logico
 
Nashorn in the future (English)
Nashorn in the future (English)Nashorn in the future (English)
Nashorn in the future (English)
Logico
 
これからのNashorn
これからのNashornこれからのNashorn
これからのNashorn
Logico
 
Nashorn in the future (English)
Nashorn in the future (English)Nashorn in the future (English)
Nashorn in the future (English)
Logico
 
Nashorn: JavaScript Running on Java VM (English)
Nashorn: JavaScript Running on Java VM (English)Nashorn: JavaScript Running on Java VM (English)
Nashorn: JavaScript Running on Java VM (English)
Logico
 
Nashorn : JavaScript Running on Java VM (Japanese)
Nashorn : JavaScript Running on Java VM (Japanese)Nashorn : JavaScript Running on Java VM (Japanese)
Nashorn : JavaScript Running on Java VM (Japanese)
Logico
 

More from Logico (15)

Welcome, Java 15! (Japanese)
Welcome, Java 15! (Japanese)Welcome, Java 15! (Japanese)
Welcome, Java 15! (Japanese)
 
Look into Project Valhalla from CLR viewpoint
Look into Project Valhalla from CLR viewpointLook into Project Valhalla from CLR viewpoint
Look into Project Valhalla from CLR viewpoint
 
Jvmls 2019 feedback valhalla update
Jvmls 2019 feedback   valhalla updateJvmls 2019 feedback   valhalla update
Jvmls 2019 feedback valhalla update
 
Oracle Code One 2018 Feedback (Server Side / Japanese)
Oracle Code One 2018 Feedback (Server Side / Japanese)Oracle Code One 2018 Feedback (Server Side / Japanese)
Oracle Code One 2018 Feedback (Server Side / Japanese)
 
Java EE 8 Overview (Japanese)
Java EE 8 Overview (Japanese)Java EE 8 Overview (Japanese)
Java EE 8 Overview (Japanese)
 
Another compilation method in java - AOT (Ahead of Time) compilation
Another compilation method in java - AOT (Ahead of Time) compilationAnother compilation method in java - AOT (Ahead of Time) compilation
Another compilation method in java - AOT (Ahead of Time) compilation
 
Polyglot on the JVM with Graal (English)
Polyglot on the JVM with Graal (English)Polyglot on the JVM with Graal (English)
Polyglot on the JVM with Graal (English)
 
CDI 2.0 (JSR 365) - Java Day Tokyo 2017 (English)
CDI 2.0 (JSR 365) - Java Day Tokyo 2017 (English)CDI 2.0 (JSR 365) - Java Day Tokyo 2017 (English)
CDI 2.0 (JSR 365) - Java Day Tokyo 2017 (English)
 
Polyglot on the JVM with Graal (Japanese)
Polyglot on the JVM with Graal (Japanese)Polyglot on the JVM with Graal (Japanese)
Polyglot on the JVM with Graal (Japanese)
 
Nashorn in the future (Japanese)
Nashorn in the future (Japanese)Nashorn in the future (Japanese)
Nashorn in the future (Japanese)
 
Nashorn in the future (English)
Nashorn in the future (English)Nashorn in the future (English)
Nashorn in the future (English)
 
これからのNashorn
これからのNashornこれからのNashorn
これからのNashorn
 
Nashorn in the future (English)
Nashorn in the future (English)Nashorn in the future (English)
Nashorn in the future (English)
 
Nashorn: JavaScript Running on Java VM (English)
Nashorn: JavaScript Running on Java VM (English)Nashorn: JavaScript Running on Java VM (English)
Nashorn: JavaScript Running on Java VM (English)
 
Nashorn : JavaScript Running on Java VM (Japanese)
Nashorn : JavaScript Running on Java VM (Japanese)Nashorn : JavaScript Running on Java VM (Japanese)
Nashorn : JavaScript Running on Java VM (Japanese)
 

Recently uploaded

Explore Modern SharePoint Templates for 2024
Explore Modern SharePoint Templates for 2024Explore Modern SharePoint Templates for 2024
Explore Modern SharePoint Templates for 2024
Sharepoint Designs
 
Lecture 1 Introduction to games development
Lecture 1 Introduction to games developmentLecture 1 Introduction to games development
Lecture 1 Introduction to games development
abdulrafaychaudhry
 
Corporate Management | Session 3 of 3 | Tendenci AMS
Corporate Management | Session 3 of 3 | Tendenci AMSCorporate Management | Session 3 of 3 | Tendenci AMS
Corporate Management | Session 3 of 3 | Tendenci AMS
Tendenci - The Open Source AMS (Association Management Software)
 
Large Language Models and the End of Programming
Large Language Models and the End of ProgrammingLarge Language Models and the End of Programming
Large Language Models and the End of Programming
Matt Welsh
 
Advanced Flow Concepts Every Developer Should Know
Advanced Flow Concepts Every Developer Should KnowAdvanced Flow Concepts Every Developer Should Know
Advanced Flow Concepts Every Developer Should Know
Peter Caitens
 
In 2015, I used to write extensions for Joomla, WordPress, phpBB3, etc and I ...
In 2015, I used to write extensions for Joomla, WordPress, phpBB3, etc and I ...In 2015, I used to write extensions for Joomla, WordPress, phpBB3, etc and I ...
In 2015, I used to write extensions for Joomla, WordPress, phpBB3, etc and I ...
Juraj Vysvader
 
Multiple Your Crypto Portfolio with the Innovative Features of Advanced Crypt...
Multiple Your Crypto Portfolio with the Innovative Features of Advanced Crypt...Multiple Your Crypto Portfolio with the Innovative Features of Advanced Crypt...
Multiple Your Crypto Portfolio with the Innovative Features of Advanced Crypt...
Hivelance Technology
 
Accelerate Enterprise Software Engineering with Platformless
Accelerate Enterprise Software Engineering with PlatformlessAccelerate Enterprise Software Engineering with Platformless
Accelerate Enterprise Software Engineering with Platformless
WSO2
 
Using IESVE for Room Loads Analysis - Australia & New Zealand
Using IESVE for Room Loads Analysis - Australia & New ZealandUsing IESVE for Room Loads Analysis - Australia & New Zealand
Using IESVE for Room Loads Analysis - Australia & New Zealand
IES VE
 
BoxLang: Review our Visionary Licenses of 2024
BoxLang: Review our Visionary Licenses of 2024BoxLang: Review our Visionary Licenses of 2024
BoxLang: Review our Visionary Licenses of 2024
Ortus Solutions, Corp
 
Dominate Social Media with TubeTrivia AI’s Addictive Quiz Videos.pdf
Dominate Social Media with TubeTrivia AI’s Addictive Quiz Videos.pdfDominate Social Media with TubeTrivia AI’s Addictive Quiz Videos.pdf
Dominate Social Media with TubeTrivia AI’s Addictive Quiz Videos.pdf
AMB-Review
 
Providing Globus Services to Users of JASMIN for Environmental Data Analysis
Providing Globus Services to Users of JASMIN for Environmental Data AnalysisProviding Globus Services to Users of JASMIN for Environmental Data Analysis
Providing Globus Services to Users of JASMIN for Environmental Data Analysis
Globus
 
Globus Connect Server Deep Dive - GlobusWorld 2024
Globus Connect Server Deep Dive - GlobusWorld 2024Globus Connect Server Deep Dive - GlobusWorld 2024
Globus Connect Server Deep Dive - GlobusWorld 2024
Globus
 
Paketo Buildpacks : la meilleure façon de construire des images OCI? DevopsDa...
Paketo Buildpacks : la meilleure façon de construire des images OCI? DevopsDa...Paketo Buildpacks : la meilleure façon de construire des images OCI? DevopsDa...
Paketo Buildpacks : la meilleure façon de construire des images OCI? DevopsDa...
Anthony Dahanne
 
De mooiste recreatieve routes ontdekken met RouteYou en FME
De mooiste recreatieve routes ontdekken met RouteYou en FMEDe mooiste recreatieve routes ontdekken met RouteYou en FME
De mooiste recreatieve routes ontdekken met RouteYou en FME
Jelle | Nordend
 
Enhancing Research Orchestration Capabilities at ORNL.pdf
Enhancing Research Orchestration Capabilities at ORNL.pdfEnhancing Research Orchestration Capabilities at ORNL.pdf
Enhancing Research Orchestration Capabilities at ORNL.pdf
Globus
 
Cracking the code review at SpringIO 2024
Cracking the code review at SpringIO 2024Cracking the code review at SpringIO 2024
Cracking the code review at SpringIO 2024
Paco van Beckhoven
 
Innovating Inference - Remote Triggering of Large Language Models on HPC Clus...
Innovating Inference - Remote Triggering of Large Language Models on HPC Clus...Innovating Inference - Remote Triggering of Large Language Models on HPC Clus...
Innovating Inference - Remote Triggering of Large Language Models on HPC Clus...
Globus
 
TROUBLESHOOTING 9 TYPES OF OUTOFMEMORYERROR
TROUBLESHOOTING 9 TYPES OF OUTOFMEMORYERRORTROUBLESHOOTING 9 TYPES OF OUTOFMEMORYERROR
TROUBLESHOOTING 9 TYPES OF OUTOFMEMORYERROR
Tier1 app
 
Into the Box 2024 - Keynote Day 2 Slides.pdf
Into the Box 2024 - Keynote Day 2 Slides.pdfInto the Box 2024 - Keynote Day 2 Slides.pdf
Into the Box 2024 - Keynote Day 2 Slides.pdf
Ortus Solutions, Corp
 

Recently uploaded (20)

Explore Modern SharePoint Templates for 2024
Explore Modern SharePoint Templates for 2024Explore Modern SharePoint Templates for 2024
Explore Modern SharePoint Templates for 2024
 
Lecture 1 Introduction to games development
Lecture 1 Introduction to games developmentLecture 1 Introduction to games development
Lecture 1 Introduction to games development
 
Corporate Management | Session 3 of 3 | Tendenci AMS
Corporate Management | Session 3 of 3 | Tendenci AMSCorporate Management | Session 3 of 3 | Tendenci AMS
Corporate Management | Session 3 of 3 | Tendenci AMS
 
Large Language Models and the End of Programming
Large Language Models and the End of ProgrammingLarge Language Models and the End of Programming
Large Language Models and the End of Programming
 
Advanced Flow Concepts Every Developer Should Know
Advanced Flow Concepts Every Developer Should KnowAdvanced Flow Concepts Every Developer Should Know
Advanced Flow Concepts Every Developer Should Know
 
In 2015, I used to write extensions for Joomla, WordPress, phpBB3, etc and I ...
In 2015, I used to write extensions for Joomla, WordPress, phpBB3, etc and I ...In 2015, I used to write extensions for Joomla, WordPress, phpBB3, etc and I ...
In 2015, I used to write extensions for Joomla, WordPress, phpBB3, etc and I ...
 
Multiple Your Crypto Portfolio with the Innovative Features of Advanced Crypt...
Multiple Your Crypto Portfolio with the Innovative Features of Advanced Crypt...Multiple Your Crypto Portfolio with the Innovative Features of Advanced Crypt...
Multiple Your Crypto Portfolio with the Innovative Features of Advanced Crypt...
 
Accelerate Enterprise Software Engineering with Platformless
Accelerate Enterprise Software Engineering with PlatformlessAccelerate Enterprise Software Engineering with Platformless
Accelerate Enterprise Software Engineering with Platformless
 
Using IESVE for Room Loads Analysis - Australia & New Zealand
Using IESVE for Room Loads Analysis - Australia & New ZealandUsing IESVE for Room Loads Analysis - Australia & New Zealand
Using IESVE for Room Loads Analysis - Australia & New Zealand
 
BoxLang: Review our Visionary Licenses of 2024
BoxLang: Review our Visionary Licenses of 2024BoxLang: Review our Visionary Licenses of 2024
BoxLang: Review our Visionary Licenses of 2024
 
Dominate Social Media with TubeTrivia AI’s Addictive Quiz Videos.pdf
Dominate Social Media with TubeTrivia AI’s Addictive Quiz Videos.pdfDominate Social Media with TubeTrivia AI’s Addictive Quiz Videos.pdf
Dominate Social Media with TubeTrivia AI’s Addictive Quiz Videos.pdf
 
Providing Globus Services to Users of JASMIN for Environmental Data Analysis
Providing Globus Services to Users of JASMIN for Environmental Data AnalysisProviding Globus Services to Users of JASMIN for Environmental Data Analysis
Providing Globus Services to Users of JASMIN for Environmental Data Analysis
 
Globus Connect Server Deep Dive - GlobusWorld 2024
Globus Connect Server Deep Dive - GlobusWorld 2024Globus Connect Server Deep Dive - GlobusWorld 2024
Globus Connect Server Deep Dive - GlobusWorld 2024
 
Paketo Buildpacks : la meilleure façon de construire des images OCI? DevopsDa...
Paketo Buildpacks : la meilleure façon de construire des images OCI? DevopsDa...Paketo Buildpacks : la meilleure façon de construire des images OCI? DevopsDa...
Paketo Buildpacks : la meilleure façon de construire des images OCI? DevopsDa...
 
De mooiste recreatieve routes ontdekken met RouteYou en FME
De mooiste recreatieve routes ontdekken met RouteYou en FMEDe mooiste recreatieve routes ontdekken met RouteYou en FME
De mooiste recreatieve routes ontdekken met RouteYou en FME
 
Enhancing Research Orchestration Capabilities at ORNL.pdf
Enhancing Research Orchestration Capabilities at ORNL.pdfEnhancing Research Orchestration Capabilities at ORNL.pdf
Enhancing Research Orchestration Capabilities at ORNL.pdf
 
Cracking the code review at SpringIO 2024
Cracking the code review at SpringIO 2024Cracking the code review at SpringIO 2024
Cracking the code review at SpringIO 2024
 
Innovating Inference - Remote Triggering of Large Language Models on HPC Clus...
Innovating Inference - Remote Triggering of Large Language Models on HPC Clus...Innovating Inference - Remote Triggering of Large Language Models on HPC Clus...
Innovating Inference - Remote Triggering of Large Language Models on HPC Clus...
 
TROUBLESHOOTING 9 TYPES OF OUTOFMEMORYERROR
TROUBLESHOOTING 9 TYPES OF OUTOFMEMORYERRORTROUBLESHOOTING 9 TYPES OF OUTOFMEMORYERROR
TROUBLESHOOTING 9 TYPES OF OUTOFMEMORYERROR
 
Into the Box 2024 - Keynote Day 2 Slides.pdf
Into the Box 2024 - Keynote Day 2 Slides.pdfInto the Box 2024 - Keynote Day 2 Slides.pdf
Into the Box 2024 - Keynote Day 2 Slides.pdf
 

ADBA (Asynchronous Database Access)

  • 1. Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | Asynchronous Database Access (ADBA) #JJUG_CCC #ccc_g7 Akihiro Nishikawa Oracle Corporation Japan May 26, 2018 JDBC API
  • 2. Copyright © 2018, Oracle and/or its affiliates. All rights reserved. Safe Harbor Statement The following is intended to outline our general product direction. It is intended for information purposes only, and may not be incorporated into any contract. It is not a commitment to deliver any material, code, or functionality, and should not be relied upon in making purchasing decisions. The development, release, and timing of any features or functionality described for Oracle’s products remains at the sole discretion of Oracle. 2
  • 3. Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | First of All... 3
  • 4. Copyright © 2018, Oracle and/or its affiliates. All rights reserved. NOTICE • Today’s topic is now discussed actively. • Everything is subject to change. • This has not been in Java specifications yet. 4
  • 5. Copyright © 2018, Oracle and/or its affiliates. All rights reserved. Agenda Introduction Basic Concepts More Concepts with Codes Wrap up 1 2 3 4 5
  • 6. Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | Introduction 6
  • 7. Copyright © 2018, Oracle and/or its affiliates. All rights reserved. Nowadays... • JDBC APIs are based on synchronous access. • You might think it is no problem at all since you use pooled connections. 7 !
  • 8. Copyright © 2018, Oracle and/or its affiliates. All rights reserved. But... • What do you do if application requires high throughput? • What if does the application run standalone as an AOT compiled native image or a function? 8 !
  • 9. Copyright © 2018, Oracle and/or its affiliates. All rights reserved. 9 How about introducing asynchronous paradigm to database access?
  • 10. Copyright © 2018, Oracle and/or its affiliates. All rights reserved. Asynchronous Database Access (ADBA) • Being developed by the JDBC Expert Group with community input • Targeted for a near future release of Java • Asynchronous apps have better throughput – Fewer threads means less thread scheduling, less thread contention – Database access is slow so blocked threads leave resources idle for a long time – Simultaneous access to multiple databases (map/reduce, sharded databases, ...) – Fire and forget (DML, stored procedures, ...) 10 Java standard database access API that never blocks user threads
  • 11. Copyright © 2018, Oracle and/or its affiliates. All rights reserved. Goals • No user thread blocks – Minimize the number of threads used for database access • Alternate API for database access – Not an extension of the standard JDBC API – Not a replacement for the standard JDBC API • Target high throughput apps – Not a completely general purpose database access API – The initial version will have a limited feature set • Build on the Java SE class library 11
  • 12. Copyright © 2018, Oracle and/or its affiliates. All rights reserved. Goals • No user thread blocks – Minimize the number of threads used for database access • Alternate API for database access – Not an extension of the standard JDBC API – Not a replacement for the standard JDBC API • Target high throughput apps – Not a completely general purpose database access API – The initial version will have a limited feature set • Build on the Java SE class library 12 Neither replacement nor enhancement, but complementary
  • 13. Copyright © 2018, Oracle and/or its affiliates. All rights reserved. Design choices • Minimal or no reference to java.sql • Rigorous use of types • Builder pattern • Fluent API • Immutable after initialization • One way to do something is enough • Avoid SQL processing • Avoid callback hell 13
  • 14. Copyright © 2018, Oracle and/or its affiliates. All rights reserved. ADBA (Asynchronous Database Access) • Package –java.sql2 (jdk.incubator.sql2) • Module –jdk.adba (jdk.incubator.adba) [Note] • Implementation-specific features are out of scope of this session. – Statement cache – Connection cache... 14
  • 15. Copyright © 2018, Oracle and/or its affiliates. All rights reserved. 15 We have lots of ways to access databases asynchronously, don’t we?
  • 16. Copyright © 2018, Oracle and/or its affiliates. All rights reserved. What About... ? • Streams – Java streams are inherently synchronous • Reactive Streams – Not integrated into the Java SE class library • Node.js – JavaScript... (Indeed this runs on Graal VM, but...) • ADBCJ - Asynchronous Database Connectivity in Java (ADBCJ) https://code.google.com/archive/p/adbcj/ 16 There are already multiple asynchronous/non-blocking Java and JavaScript APIs...
  • 17. Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | Basic Concepts 17
  • 18. Copyright © 2018, Oracle and/or its affiliates. All rights reserved. CompletionStage & CompletableFuture • Java class library mechanism for asynchronous style programming – Brings reactive programming to Java – Enables the composition of asynchronous tasks – A task has a state and it might be... • running • completed normally with a result • completed exception all with an exception – Event thread : the result of the completion is pushed to dependent tasks • Push model à higher scalability than pull or poll • Supports lambda expressions and fluent programming 18
  • 19. Copyright © 2018, Oracle and/or its affiliates. All rights reserved. Execution Model (1/2) • Operation consists of a result and a CompletionStage • SQL or other database operation • Parameter assignments • Result handling • Submission and CompletableFuture 19 Everything is an Operation
  • 20. Copyright © 2018, Oracle and/or its affiliates. All rights reserved. Execution Model (2/2) • User thread creates and submits Operations – User thread is never blocked when creating and submitting Operations. • Implementation executes those Operations asynchronously – Performs round trip(s) to the database – Executes result handling – Completes CompletableFutures 20
  • 21. Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | More concepts with Codes 21
  • 22. Copyright © 2018, Oracle and/or its affiliates. All rights reserved. 22 public void trivialInsert(DataSource ds) { String sql = "insert into tab values (:id, :name, :answer)"; try (Connection conn = ds.getConnection()) { conn.countOperation(sql) .set("id", 1, AdbaType.NUMERIC) .set("name", "Deep Thought", AdbaType.VARCHAR) .set("answer", 42, AdbaType.NUMERIC) .submit(); } } Trivial Insert
  • 23. Copyright © 2018, Oracle and/or its affiliates. All rights reserved. All SQL is Vendor Specific • No escape sequences • No specified parameter markers • Non vendor specific syntax requires processing by the driver – Adds overhead – Increases code complexity – Minimal benefit as most apps are tied to a specific database regardless 23
  • 24. Copyright © 2018, Oracle and/or its affiliates. All rights reserved. All SQL is Vendor Specific • DB2 (:foo) • MySQL (?) • Oracle Database (:foo) • PostgresSQL ($1) • SQL Server (@foo) 24 Note: Code examples use parameter markers from a variety of databases.
  • 25. Copyright © 2018, Oracle and/or its affiliates. All rights reserved. 25 public void trivialSelect(DataSource ds, List<Integer> result) { String sql = "select id, name, answer from tab where answer = $1"; try (Connection conn = ds.getConnection()) { conn.<List<Integer>>rowOperation(sql) .set("1", 42, AdbaType.NUMERIC) .collect((ignore, row) -> { result.add(row.get("id", Integer.class)); return null; }) .submit(); } } Trivial Select
  • 26. Copyright © 2018, Oracle and/or its affiliates. All rights reserved. 26 public DataSource getDataSource(String url, String user, String pass) { return DataSourceFactory.forName("Oracle Database") .builder() .url("jdbc:oracle:nonblocking:@//ccc18.example.org:5521/ccc18") .username("scott") .password("tiger") .connectionProperty(AdbaConnectionProperty.TRANSACTION_ISOLATION, AdbaConnectionProperty.TransactionIsolation.SERIALIZABLE) .connectionProperty(NLS_LANGUAGE, "Japanese") .build(); } ConnectionProperties
  • 27. Copyright © 2018, Oracle and/or its affiliates. All rights reserved. 27 in interface DataSource: public default Connection getConnection() { return builder().build().connect(); } in interface Connection: public default Connection connect() { holdForMoreMembers(); submit(); connectOperation().submit(); return this; } Getting Connection
  • 28. Copyright © 2018, Oracle and/or its affiliates. All rights reserved. Connection Pooling in interface Connection: public Connection activate(); public Connection deactivate(); public registerLifecycleListener(LifecycleListener listener); 28 If you remove registered LifecycleListener, call deregisterLifecycleListener()
  • 29. Copyright © 2018, Oracle and/or its affiliates. All rights reserved. 29 public Future<Integer> selectIdForAnswer(DataSource ds, int answer) { String sql = "select id, name, answer from tab where answer = @target"; try (Connection conn = ds.getConnection()) { return conn.<List<Integer>>rowOperation(sql) .set("target", 42, AdbaType.NUMERIC) .collect((list, row) -> { list.add(row.get("id", Integer.class)); return list; } ) .submit() .toCompletableFuture() .thenApply(l -> l.get(0)); } } Basic SELECT
  • 30. Copyright © 2018, Oracle and/or its affiliates. All rights reserved. 30 public class Item { protected int id; protected String name; protected int answer; @SqlColumns({"ID", "USER", "RESPONSE"}) public Item(int id, String name, int answer) { this.id = id; this.name = name; this.answer = answer; } @SqlParameter(marker = "id", sqlType = "NUMERIC") public int getId() { return id; } (cont.) POJOs (1/2)
  • 31. Copyright © 2018, Oracle and/or its affiliates. All rights reserved. 31 (cont.) @SqlParameter(marker = "name", sqlType = "VARCHAR") public String getName() { return name; } @SqlParameter(marker = "answer", sqlType = "NUMERIC") public int getAnswer() { return answer; } } POJOs (2/2)
  • 32. Copyright © 2018, Oracle and/or its affiliates. All rights reserved. OperationGroup (1/2) • OperationGroup has its own result handling and CompletableFuture • Members submitted to group.OperationGroup is submitted as a unit • Execution Order – Default : Sequential in order submitted – parallel() : should be marked if having member Operations executed in any order including in parallel. 32 group of Operations
  • 33. Copyright © 2018, Oracle and/or its affiliates. All rights reserved. OperationGroup (1/2) • Error response – Default : Skip remaining group members if failure of one member Operation happens. (with a SqlSkippedException with the cause set to the original exception). – independent(): should be marked if remaining group members unaffected • Conditional or unconditional • Connection is an OperationGroup – Sequential, dependent, unconditional by default 33
  • 34. Copyright © 2018, Oracle and/or its affiliates. All rights reserved. 34 public void insertListHold(List<Item> list, DataSource ds) { String sql = "insert into tab values (@elem_id, @elem_name, @elem_answer)"; try (Connection conn = ds.getConnection()) { OperationGroup group = conn.operationGroup().independent(); group.submitHoldingForMoreMembers(); for (Item elem : list) { group.countOperation(sql) .set("elem_", elem).submit().getCompletionStage() .exceptionally(t -> { System.out.println(elem.getId()); return null; }); } group.releaseProhibitingMoreMembers(); } } Independent INSERT
  • 35. Copyright © 2018, Oracle and/or its affiliates. All rights reserved. 35 public void deposit(Connection conn, int accountId, double amount) { String selectSql = "select balance from account where id = $1"; CompletableFuture<Double> newBalanceF = conn.<Double>rowOperation(selectSql) .set("1", accountId, AdbaType.INTEGER) .collect((p, row) -> row.get("balance", Double.class)) .submit() .toCompletableFuture() .thenApply(b -> b + amount); String updateSql = "update account set balance=$2 where id = $1"; conn.countOperation(updateSql).set("1", accountId, AdbaType.INTEGER) .set("2", newBalanceF, AdbaType.DOUBLE) .submit(); } Future Parameters
  • 36. Copyright © 2018, Oracle and/or its affiliates. All rights reserved. 36 public void updateListParallel(List<Item> list, DataSource ds) { String query = "select id from tab where answer = ?"; String update = "update tab set answer = ? where id = ?"; try (Connection conn = ds.getConnection()) { OperationGroup<Object, Object> group = conn.operationGroup() .independent() .parallel(); group.submitHoldingForMoreMembers(); (cont.) Parallel UPDATE (1/3)
  • 37. Copyright © 2018, Oracle and/or its affiliates. All rights reserved. 37 (cont.) for (Item elem : list) { CompletableFuture<Integer> idF = group.<Integer>rowOperation(query) .set("1", elem.getAnswer(), AdbaType.NUMERIC) .collect((ignore, row) -> { return row.get("id", Integer.class); }) .submit() .toCompletableFuture(); (cont.) Parallel UPDATE (2/3)
  • 38. Copyright © 2018, Oracle and/or its affiliates. All rights reserved. 38 (cont.) group.countOperation(update).set("1", idF) .set("2", "42") .submit() .getCompletionStage() .exceptionally(t -> { System.out.println("Update failed: " + elem.getId()); return null; }); } group.releaseProhibitingMoreMembers(); } } Parallel UPDATE (3/3)
  • 39. Copyright © 2018, Oracle and/or its affiliates. All rights reserved. Close in interface Connection: public default void close() { closeOperation().submit(); releaseProhibitingMoreMembers(); } 39 CloseOperation is never skipped.
  • 40. Copyright © 2018, Oracle and/or its affiliates. All rights reserved. 40 public static class NlsLanguageProperty implements ConnectionProperty { public static final ConnectionProperty NLS_LANGUAGE = new NlsLanguageProperty(); private NlsLanguageProperty() { } public String name() { return "NLS_LANGUAGE"; } public Class range() { return String.class; } ConnectionProperty (1/2)
  • 41. Copyright © 2018, Oracle and/or its affiliates. All rights reserved. 41 public String defaultValue() { return "American"; } public boolean isSensitive() { return false; } public Operation configureOperation(OperationGroup group, Object value) { String sql = "ALTER SESSION SET NLS_LANGUAGE TO " + value; return group.operation(sql); } } ConnectionProperty (2/2)
  • 42. Copyright © 2018, Oracle and/or its affiliates. All rights reserved. 42 @SqlStruct(sqlTypeName = "STUDENT", fields = { @SqlStruct.Field(sqlFieldName = "NAME", sqlTypeName = "VARCHAR(100)", javaFieldName = "name"), @SqlStruct.Field(sqlFieldName = "EMAIL", sqlTypeName = "VARCHAR(100)", javaFieldName = "email") }) public class Student { String name; String email; ... } @SqlArray(elementSqlTypeName = "STUDENT") public class Roster extends LinkedList<Student> { public Roster() {} } ARRAYs and STRUCTs
  • 43. Copyright © 2018, Oracle and/or its affiliates. All rights reserved. 43 public void transfer(Connection conn, double amount, int fromAccount, int toAccount) { String sql = "update account set balance=balance+@amount where id = @account"; conn.countOperation(sql) .set("amount", -amount, AdbaType.DECIMAL) .set("account", fromAccount, AdbaType.INTEGER) .submit(); conn.countOperation(sql) .set("amount", amount, AdbaType.DECIMAL) .set("account", toAccount, AdbaType.INTEGER) .submit(); conn.commit(); } Transactions (1/2)
  • 44. Copyright © 2018, Oracle and/or its affiliates. All rights reserved. 44 public void transfer(Connection conn, double amount, int fromAccount, int toAccount) { String sql = "update account set balance=balance+@amount where id = @account"; final Transaction tran = conn.transaction(); conn.countOperation(sql) .set("amount", -amount, AdbaType.DECIMAL) .set("account", fromAccount, AdbaType.INTEGER) .onError( e -> tran.setRollbackOnly() ) .submit(); conn.countOperation(sql) .set("amount", amount, AdbaType.DECIMAL) .set("account", toAccount, AdbaType.INTEGER) .onError( e -> tran.setRollbackOnly() ) .submit(); conn.commit(); } Transactions (2/2)
  • 45. Copyright © 2018, Oracle and/or its affiliates. All rights reserved. 45 public void paycheck(Connection conn, Employee emp) { String sql = "call generate_paycheck(?, ?)"; CompletableFuture<CheckDetail> details = conn.<CheckDetail>outOperation(sql) .set("1", emp, AdbaType.STRUCT) .outParameter("2", AdbaType.STRUCT) .resultProcessor(m -> m.get("2", CheckDetail.class)) .submit() .toCompletableFuture(); (cont.) Local Operations (1/2)
  • 46. Copyright © 2018, Oracle and/or its affiliates. All rights reserved. 46 (cont.) conn.localOperation() .onExecution(() -> { printPaycheck(details); return null; }) .submit() .toCompletableFuture() .thenRun(() -> reportPrintSuccess(details)) .exceptionally(t -> { reportPrintFailure(details); return null; }); } Local Operations (2/2)
  • 47. Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | Wrap up 47
  • 48. Copyright © 2018, Oracle and/or its affiliates. All rights reserved. Key takeaways • Asynchronous • Geared toward high-throughput programs • Does not attempt to support every database feature • Does not attempt to abstract the database • Uses the builder pattern • Supports the fluent programming style 48
  • 49. Copyright © 2018, Oracle and/or its affiliates. All rights reserved. Status • Now developed by the JDBC Expert Group through the Java Community Process • Targeted for a near future release of Java • Send feedback to jdbc-spec-discuss@openjdk.java.net 49 Everything is subject to change!
  • 50. Copyright © 2018, Oracle and/or its affiliates. All rights reserved. Resources • Available for download from OpenJDK http://oracle.com/goto/java-async-db • AoJ (ADBA over JDBC) [JDK 9 or later is required] https://github.com/oracle/oracle-db-examples/tree/master/java/AoJ • JavaDoc http://cr.openjdk.java.net/~lancea/8188051/apidoc/jdk.incubator.adba-summary.html 50
  • 51. Copyright © 2018, Oracle and/or its affiliates. All rights reserved. Safe Harbor Statement The preceding is intended to outline our general product direction. It is intended for information purposes only, and may not be incorporated into any contract. It is not a commitment to deliver any material, code, or functionality, and should not be relied upon in making purchasing decisions. The development, release, and timing of any features or functionality described for Oracle’s products remains at the sole discretion of Oracle. 51