Introduction to NOSQL
Otávio Santana
@otaviojava
https://github.com/otavioj
ava/
http://about.me/otaviojav
a
Agenda
Cassandra
Architecture
Hierarchy
Modeling
Example (Spring and Weld CDI)
NOSQL
Not only SQL
Know your problem first
SQL vs NOSQL
•
Driver
•
SQL ANSI
•
Transactions
•
High cost of IO
•
Easy change data base
•
Relationship
•
API
•
No standa...
Classification
Architecture Storage
Organization
Key-Value
Document
Graph
Column Family
Cassandra
Distributed
Configurable
Columns Family
Cassandra
Gossip
Consistency Level
write and read
ANY
ONE
LOCAL_QUORUM
EACH_QOURUM
ALL
Availability
Consistency
Modeling
Annotation
JPA 2.0
Spring
Configuration xml or java Code
Spring Data- Cassandra
Cassandra
Spring Data- Cassandra
Cassandra
PersistenceSimpleImpl
@Produces
@Inject
…
JSR 299
Thank you
Otávio Santana
@otaviojava
https://github.com/otavi
ojava/
http://about.me/otavioj
ava
#SouJava
Thomas Modeneis
@thomasmodeneis
Table of contents
• OSGI
– Benefits
• Developers
• Business
Reduce, Reuse, Easy Deployment, Dynamic, Adaptive, Fast, Secur...
Benefits For the Developers
– OSGi reduces complexity.
– Provides a modular architecture
– Reduces development and
mainten...
Benefits For the Business
• Reduces operational costs.
• Integrates multiple devices in a networked
environment.
• Enables...
Reduce, Reuse, Easy Deployment, Dynamic, Adaptive, Fast,
Widely Used.
– Reduce
• Bundles hide their internals Reducing def...
Reduce, Reuse, Easy Deployment, Dynamic, Adaptive, Fast,
Widely Used.
Dynamic
• Dynamic Model, Developers do not believe t...
Reduce, Reuse, Easy Deployment, Dynamic, Adaptive, Fast,
Widely Used.
Extensively used in many indust
Automotive, Mobile T...
Architecture
Conclusion
Though components have been on the horizon for long time.
– But so far, they failed to make good on their promi...
Demo
• Apache CXF
– (SOAP, XML/HTTP, RESTful HTTP, or
CORBA)
• Apache Karaf
– Lightweight OSGI container
• Speaker Service...
Questions … ?
References
• The Javadoc of the OSGi API
• The specification PDF
• OSGi in different industries and markets
• How to Get S...
Links
@soujava
https://www.facebook.com/soujava
http://goo.gl/unH3z
Thank you
#soujava
Thomas R Modeneis
@thomasmodeneis
Fundamental Paradigms for Java Developers: NoSQL and OSGI
Fundamental Paradigms for Java Developers: NoSQL and OSGI
Upcoming SlideShare
Loading in …5
×

Fundamental Paradigms for Java Developers: NoSQL and OSGI

1,080 views

Published on

With the amazingly rich Java ecosystem, Java developers have a load of frameworks and solutions to work from and to incorporate in their projects. Learn more in this session. How work Cassandra with OSGI.

Published in: Technology, Education

Fundamental Paradigms for Java Developers: NoSQL and OSGI

  1. 1. Introduction to NOSQL Otávio Santana @otaviojava https://github.com/otavioj ava/ http://about.me/otaviojav a
  2. 2. Agenda Cassandra Architecture Hierarchy Modeling Example (Spring and Weld CDI)
  3. 3. NOSQL Not only SQL Know your problem first
  4. 4. SQL vs NOSQL • Driver • SQL ANSI • Transactions • High cost of IO • Easy change data base • Relationship • API • No standarization • No transactions • Find by key • Woring change data base • No relationship
  5. 5. Classification Architecture Storage Organization Key-Value Document Graph Column Family
  6. 6. Cassandra Distributed Configurable Columns Family
  7. 7. Cassandra Gossip Consistency Level write and read ANY ONE LOCAL_QUORUM EACH_QOURUM ALL Availability Consistency
  8. 8. Modeling Annotation JPA 2.0
  9. 9. Spring Configuration xml or java Code
  10. 10. Spring Data- Cassandra Cassandra
  11. 11. Spring Data- Cassandra Cassandra
  12. 12. PersistenceSimpleImpl @Produces @Inject … JSR 299
  13. 13. Thank you Otávio Santana @otaviojava https://github.com/otavi ojava/ http://about.me/otavioj ava
  14. 14. #SouJava Thomas Modeneis @thomasmodeneis
  15. 15. Table of contents • OSGI – Benefits • Developers • Business Reduce, Reuse, Easy Deployment, Dynamic, Adaptive, Fast, Secure. – Architecture • Layering, Modules, Services, Implementations. – Conclusion – Demo – Questions ?
  16. 16. Benefits For the Developers – OSGi reduces complexity. – Provides a modular architecture – Reduces development and maintenance expenses – Realizes the promise of Component-based systems
  17. 17. Benefits For the Business • Reduces operational costs. • Integrates multiple devices in a networked environment. • Enables: –Tackling costly application development – –Maintenance – –Remote service management
  18. 18. Reduce, Reuse, Easy Deployment, Dynamic, Adaptive, Fast, Widely Used. – Reduce • Bundles hide their internals Reducing defects and Simplifying the development – Reuse • Makes it very easy to use third party components • An increasing number of projects providing JARs for OSGi – Easy Deployment • OSGi installation and Management can be as simple as – Command shell or –  A CLOUD interface like Amazon's EC2
  19. 19. Reduce, Reuse, Easy Deployment, Dynamic, Adaptive, Fast, Widely Used. Dynamic • Dynamic Model, Developers do not believe this can be done. • However, after some time, they realize it actually works Adaptive • Registry is a dynamic, Service model allows bundles to find out what capabilities are available Small  The OSGi R.4 Framework can be implemented in about a 300KB Fast • Linear list, pre-wires bundles, Each bundle knows exactly which bundle provides the class
  20. 20. Reduce, Reuse, Easy Deployment, Dynamic, Adaptive, Fast, Widely Used. Extensively used in many indust Automotive, Mobile Telephon, Industrial Automation , Eclipse Environment, Spring Framework, Foundation of IBM Websphere, Oracle (formerly BEA) Weblogic, Sun's GlassFish, Redhat's JBoss
  21. 21. Architecture
  22. 22. Conclusion Though components have been on the horizon for long time. – But so far, they failed to make good on their promises – OSGi is the first technology that succeed with a component system that really is solving real problems in software development. • The key reason OSGi technology is successful ? – It provides very mature component system that actually works – Code is easier to write, test and reuse is increased. – Defects are detected earlier – Is testified by the wide adoption and use in popular apps like Eclipse and Spring.
  23. 23. Demo • Apache CXF – (SOAP, XML/HTTP, RESTful HTTP, or CORBA) • Apache Karaf – Lightweight OSGI container • Speaker Service Hello World Karaf & CXF
  24. 24. Questions … ?
  25. 25. References • The Javadoc of the OSGi API • The specification PDF • OSGi in different industries and markets • How to Get Started with OSGi • Other Links
  26. 26. Links @soujava https://www.facebook.com/soujava http://goo.gl/unH3z
  27. 27. Thank you #soujava Thomas R Modeneis @thomasmodeneis

×