A Happy Cloud Friendly Java Developer with OpenShift Shekhar Gulati   Xebia
 
Why PaaS Is Important? <ul><li>Avoids getting caught up in systems management or other lower level concerns.
Lets developer focus on his job i.e. to write code.
You develop “Cloud Aware “ applications from bottom up.
Automatic Scaling.
Improves developer productivity. </li></ul>
As a developer it gives you power to prototype and create application rapidly.
 
Pre 2011 Java Developer was Sad PaaS == Problem as a Service
Issues with pre 2011 PaaS <ul><li>Can't run existing code.
Tied to particular environment.
Vendor lock-in (lack of cloud portability).
Deployment on public cloud only.
Need to change the mindset.
Diluted frameworks.
Fewer Options or Choices. </li></ul>
Things changed in 2011
 
Enter OpenShift <ul><li>Multi Language, Multi Frameworks, Multi Cartridges , Multi Cloud (future).
Cloud Portability.
No Proprietary Software.
No Need to change your code or learn something new.
Comes in three flavors </li><ul><li>Express,  Flex and Power . </li></ul></ul>
OpenShift Express <ul><li>Java, Perl, Python, PHP, and Ruby
Command Line,Eclipse & Forge plugin
Jenkins Support
Upcoming SlideShare
Loading in …5
×

A Happy Cloud Friendly Java Developer with OpenShift

2,708 views

Published on

PaaS landscape has changed in 2011 with the unveiling of PaaS solutions like OpenShift and Cloud Foundry. The earlier PaaS solutions for Java developers like Google App Engine had lot of restrictions like learning new paradigm of programming , fewer choices in terms of languages and frameworks, diluted support which made it difficult to port existing applications to Cloud. With OpenShift you can very easily port your existing application to cloud without learning anything new or changing your code. OpenShift is great because it not only provides you with the choices of programming language (Java, PHP, Python), frameworks (like Spring or JavaEE), databases (like MySQL or MongoDB) but it also gives you control over the underlying infrastructure. In this session I will show you how you can deploy a Spring MongoDB application to OpenShift Express. Then I will show you how to deploy the same application on auto-scalable, cluster-enabled PaaS, OpenShift Flex.

Published in: Technology
0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
2,708
On SlideShare
0
From Embeds
0
Number of Embeds
19
Actions
Shares
0
Downloads
21
Comments
0
Likes
1
Embeds 0
No embeds

No notes for slide

A Happy Cloud Friendly Java Developer with OpenShift

  1. 2. A Happy Cloud Friendly Java Developer with OpenShift Shekhar Gulati Xebia
  2. 4. Why PaaS Is Important? <ul><li>Avoids getting caught up in systems management or other lower level concerns.
  3. 5. Lets developer focus on his job i.e. to write code.
  4. 6. You develop “Cloud Aware “ applications from bottom up.
  5. 7. Automatic Scaling.
  6. 8. Improves developer productivity. </li></ul>
  7. 9. As a developer it gives you power to prototype and create application rapidly.
  8. 11. Pre 2011 Java Developer was Sad PaaS == Problem as a Service
  9. 12. Issues with pre 2011 PaaS <ul><li>Can't run existing code.
  10. 13. Tied to particular environment.
  11. 14. Vendor lock-in (lack of cloud portability).
  12. 15. Deployment on public cloud only.
  13. 16. Need to change the mindset.
  14. 17. Diluted frameworks.
  15. 18. Fewer Options or Choices. </li></ul>
  16. 19. Things changed in 2011
  17. 21. Enter OpenShift <ul><li>Multi Language, Multi Frameworks, Multi Cartridges , Multi Cloud (future).
  18. 22. Cloud Portability.
  19. 23. No Proprietary Software.
  20. 24. No Need to change your code or learn something new.
  21. 25. Comes in three flavors </li><ul><li>Express, Flex and Power . </li></ul></ul>
  22. 26. OpenShift Express <ul><li>Java, Perl, Python, PHP, and Ruby
  23. 27. Command Line,Eclipse & Forge plugin
  24. 28. Jenkins Support
  25. 29. MySQL, PostgreSQL,and MongoDB
  26. 30. Client Tools for data stores
  27. 31. Runs on top of EC2 but free
  28. 32. Supports 5 applications per user.
  29. 33. Multi tenant
  30. 34. Shell Access. </li></ul>
  31. 35. Get Started With Express <ul><li>Sign up at OpenShift website
  32. 36. Install client tools. RHC Ruby Gem ,Eclipse Plugin
  33. 37. Create Domain
  34. 38. Create Application
  35. 39. Deploy using GIT. Just do git push.
  36. 40. I have written Spring Roo OpenShift Express add-on </li></ul>
  37. 41. Demo – OpenShift Express <ul><li>PasteBin Clone with a twist. </li><ul><li>Spring Application
  38. 42. MongoDB datastore
  39. 43. Spring Roo
  40. 44. Jenkins Support. </li></ul></ul>
  41. 45. What is Spring? <ul><li>An open source, lightweight, modular, and extensible application framework.
  42. 46. Non invasive (POJO based) </li></ul>
  43. 47. What is MongoDB? <ul><li>Document Database
  44. 48. Each document is heterogeneous, and may have completely unique structure compared to other documents.
  45. 49. Fast and horizontally scalable.
  46. 50. Terminology </li><ul><li>Database -> Database
  47. 51. Table -> Collection
  48. 52. Row -> Document </li></ul></ul>
  49. 53. What is Spring Roo? <ul><li>Easy to use productivity tool
  50. 54. Code generator – Spring based enterprise applications.
  51. 55. Use best of breed.
  52. 56. Development time only. </li><ul><li>No runtime
  53. 57. No negative performance impact
  54. 58. No memory overhead
  55. 59. No Roo deployment </li></ul></ul>
  56. 60. OpenShift Express Limitations <ul><li>Five 512 MB RAM instances
  57. 61. Java Max Heap Memory and permgen limitations
  58. 62. 100 process which translates to 80 Java Threads.
  59. 63. Currently, I think it is good for rapid prototyping. </li></ul>
  60. 65. Enter OpenShift Flex <ul><li>Java and PHP
  61. 66. Web UI and Command Line(Not tried)
  62. 67. Runs on your dedicated EC2 instance.
  63. 68. JBoss, Apache Web Server and Tomcat, MySQL, Memcached, Membase, Infinispan, MRG Messaging and MongoDB
  64. 69. Supports shell access.
  65. 70. Configure Components, Auto-Scaling, Performance Monitoring, Log Management
  66. 71. Coolest – Cost Calculator (I think) </li></ul>
  67. 72. Demo 2 Getting Started with Flex
  68. 73. Demo 3 – Deploying Application <ul><li>PasteBin Clone with a twist. </li><ul><li>Spring Application
  69. 74. MongoDB datastore
  70. 75. Spring Roo
  71. 76. Already created application. </li></ul></ul>
  72. 77. Demo 4 –MongoDB Replica Set Scaling MongoDB Reads
  73. 78. Demo 5 Managing Overload- Scalability
  74. 79. OpenShift Flex Monitoring Performance
  75. 80. Conclusion <ul><li>Its a great time to be a Java developer
  76. 81. It is very easy to deploy existing applications.
  77. 82. Developer have to only focus on writing code and new apps not raising tickets.
  78. 83. Try OpenShift. It is awesome. </li></ul>
  79. 84. In case you want to know my details.. <ul><li>Senior Java Consultant at Xebia
  80. 85. Spring portfolio projects , Big Data, NoSQL, Cloud enthusiast.
  81. 86. Freelance Writer
  82. 87. [email_address]
  83. 88. Twitter handle : shekhargulati </li></ul>
  84. 89. Thanks for listening

×