Node.js access to Oracle Db <ul>Node.js does not have Oracle db access at this time.  It does have MS Sql, Postres, MySql ...
Data in 4 Easy Steps Node pub/sub with Redis Java pub/sub with Redis Java does query with message from Node Java publishes...
Java client receives a message containing the text to a query or stored procedure It processes the message by performing t...
Lines 4 – 9, create 2 pairs of pub/sub clients Line 12-13, 15-16, when ready, subscribe to the results which is the JSONAr...
For query and storedProc, when a message is received, send it to the cb callback provided by Async. Publish the query or s...
When processing is complete the node client ends the sub / pub connection. Node.js
Async provides parallel control flow.  On line 10, the query function publishes it's message as does the storedProc functi...
Continuing... Parallel control calls the anonymous function on line 32.  The results obj contains the JSONArray data.  Aft...
All open source. For complete write up see http://barton-notestomyself.blogspot.com/2011/12/nodejs-oracle-db-not-so-bad-un...
Upcoming SlideShare
Loading in …5
×

Node.js and Oracle db - Pub/Sub with Redis

4,662
-1

Published on

This is a proof of concept demonstrating how a node.js client can obtain data from an Oracle db by using Pub/Sub with Redis. ASync provides control flow processing.

Published in: Technology, Education
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
4,662
On Slideshare
0
From Embeds
0
Number of Embeds
2
Actions
Shares
0
Downloads
21
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Node.js and Oracle db - Pub/Sub with Redis

  1. 1. Node.js access to Oracle Db <ul>Node.js does not have Oracle db access at this time. It does have MS Sql, Postres, MySql & SqlLite and others of the NoSQL flavor. <li>This is a proof of concept that demonstrates how node.js can leveage the power of Oracle db by incorporating a pub sub solution provided by Redis. </li></ul>
  2. 2. Data in 4 Easy Steps Node pub/sub with Redis Java pub/sub with Redis Java does query with message from Node Java publishes result set Async provides patterns for control flow
  3. 3. Java client receives a message containing the text to a query or stored procedure It processes the message by performing the request It returns the Result as a JSONArray of Jason Objects.
  4. 4. Lines 4 – 9, create 2 pairs of pub/sub clients Line 12-13, 15-16, when ready, subscribe to the results which is the JSONArray of JSONObjects Node.js
  5. 5. For query and storedProc, when a message is received, send it to the cb callback provided by Async. Publish the query or storedProc that was passed . Node.js
  6. 6. When processing is complete the node client ends the sub / pub connection. Node.js
  7. 7. Async provides parallel control flow. On line 10, the query function publishes it's message as does the storedProc function on line 24. Node.js test client
  8. 8. Continuing... Parallel control calls the anonymous function on line 32. The results obj contains the JSONArray data. After logging the results, the pub / sub is ended. Node.js test client
  9. 9. All open source. For complete write up see http://barton-notestomyself.blogspot.com/2011/12/nodejs-oracle-db-not-so-bad-union.html Node.js Oracle db Pub/Sub

×