0
1Copyright © 2012, Oracle and/or its affiliates. All rights reserved.

Insert Information Protection Policy Classification...
Developing Applications with
MySQL and Java
Mark Matthews
Consulting Member, Technical Staff - Oracle

2Copyright © 2012, ...
The following is intended to outline our general product direction. It is intended
for information purposes only, and may ...
Graphic Section Divider

4Copyright © 2012, Oracle and/or its affiliates. All rights reserved.

Insert Information Protect...
Please ask Questions!

● This is not a lecture – but an opportunity to learn from each other
● The only assumption I'm mak...
Elements of Scalability

● Vertical Scalability – single component responding to load
●
Largely driven by efficient resour...
Designing for Scalability

● Vertical Scalability
●
Algorithms
●

Persistence tuning

● Horizontal Scalability
●

Partitio...
Architecture – Birth of an Application
UI
Business Logic
Persistence

MySQL

8Copyright © 2012, Oracle and/or its affiliat...
Architecture – Growing the Application
UI

3rd Party

Client APIs
Business Logic
Persistence

Write
9Copyright © 2012, Ora...
Architecture – Growing the Application Again
UI

3rd Party

Client APIs
Business Logic
Caching
Persistence

Write
10Copyri...
Architecture – Growing the Application Again
UI

3rd Party

Client APIs
Business Logic
Caching
Persistence

Write
11Copyri...
Architecture – Growing the Application Again
by-data A

12Copyright © 2012, Oracle and/or its affiliates. All rights reser...
Architecture – Growing the Application Again
Customers
by-data A

by-data B

by-data C

Inventory/Rentals
by-data A

by-da...
Design for Growth from the Start

● Separation of concerns from the start
● Business Logic
●

Natural place for units of w...
This Lab

● MySQL in a replication hierarchy
●
Managed by MySQL Sandbox
●

“Sakila” Schema

● Simple harness over a layere...
Take Aways

● Design for scale up front
● Demarcate units of work with transactions
●
Makes it possible to load balance
●
...
17Copyright © 2012, Oracle and/or its affiliates. All rights reserved.

Insert Information Protection Policy Classificatio...
Upcoming SlideShare
Loading in...5
×

Developing Applications with MySQL and Java

718

Published on

Slides from a hands-on-lab given at MySQL Connect 2012

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

  • Be the first to like this

No Downloads
Views
Total Views
718
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
12
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Transcript of "Developing Applications with MySQL and Java"

  1. 1. 1Copyright © 2012, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 12
  2. 2. Developing Applications with MySQL and Java Mark Matthews Consulting Member, Technical Staff - Oracle 2Copyright © 2012, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 12 Insert Picture Here
  3. 3. 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. 3Copyright © 2012, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 12
  4. 4. Graphic Section Divider 4Copyright © 2012, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 12
  5. 5. Please ask Questions! ● This is not a lecture – but an opportunity to learn from each other ● The only assumption I'm making is that you're not expecting to write PHP ● (if you haven't seen some of these frameworks, methods, etc. it's okay) e 5Copyright © 2012, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 12
  6. 6. Elements of Scalability ● Vertical Scalability – single component responding to load ● Largely driven by efficient resource usage ● Horizontal Scalability – more components responding to load ● Architecture that allows “divide and conquer” 6Copyright © 2012, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 12
  7. 7. Designing for Scalability ● Vertical Scalability ● Algorithms ● Persistence tuning ● Horizontal Scalability ● Partitioning by workload ● Partitioning by service 7Copyright © 2012, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 12
  8. 8. Architecture – Birth of an Application UI Business Logic Persistence MySQL 8Copyright © 2012, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 12
  9. 9. Architecture – Growing the Application UI 3rd Party Client APIs Business Logic Persistence Write 9Copyright © 2012, Oracle and/or its affiliates. All rights reserved. Read Insert Information Protection Policy Classification from Slide 12
  10. 10. Architecture – Growing the Application Again UI 3rd Party Client APIs Business Logic Caching Persistence Write 10Copyright © 2012, Oracle and/or its affiliates. All rights reserved. Read Insert Information Protection Policy Classification from Slide 12
  11. 11. Architecture – Growing the Application Again UI 3rd Party Client APIs Business Logic Caching Persistence Write 11Copyright © 2012, Oracle and/or its affiliates. All rights reserved. Read Insert Information Protection Policy Classification from Slide 12
  12. 12. Architecture – Growing the Application Again by-data A 12Copyright © 2012, Oracle and/or its affiliates. All rights reserved. by-data B Insert Information Protection Policy Classification from Slide 12 by-data C
  13. 13. Architecture – Growing the Application Again Customers by-data A by-data B by-data C Inventory/Rentals by-data A by-data B by-data C 13Copyright © 2012, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 12 Comments/Rating by-data A by-data B by-data C
  14. 14. Design for Growth from the Start ● Separation of concerns from the start ● Business Logic ● Natural place for units of work, partitioning ● Natural point to build APIs to deliver services ● Persistence Logic ● Easier to tune/fix persistence performance issues – once - ● Easy to cache if in one place 14Copyright © 2012, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 12
  15. 15. This Lab ● MySQL in a replication hierarchy ● Managed by MySQL Sandbox ● “Sakila” Schema ● Simple harness over a layered service architecture ● Spring, Hibernate, EhCache ● Evolution ● Performance, Partitioning by workload, (further into cells) 15Copyright © 2012, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 12
  16. 16. Take Aways ● Design for scale up front ● Demarcate units of work with transactions ● Makes it possible to load balance ● Natural cleave point for partitioning by service ● Compartmentalize persistence ● Fix performance issues once ● Add caching in one place ● Testability 16Copyright © 2012, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 12
  17. 17. 17Copyright © 2012, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 12
  1. A particular slide catching your eye?

    Clipping is a handy way to collect important slides you want to go back to later.

×