DZone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
Refcards Trend Reports Events Over 2 million developers have joined DZone. Join Today! Thanks for visiting DZone today,
Edit Profile Manage Email Subscriptions Moderation Admin Console How to Post to DZone Article Submission Guidelines
View Profile
Sign Out
Refcards
Trend Reports
Events
Zones
Culture and Methodologies Agile Career Development Methodologies Team Management
Data Engineering AI/ML Big Data Data Databases IoT
Software Design and Architecture Cloud Architecture Containers Integration Microservices Performance Security
Coding Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Culture and Methodologies
Agile Career Development Methodologies Team Management
Data Engineering
AI/ML Big Data Data Databases IoT
Software Design and Architecture
Cloud Architecture Containers Integration Microservices Performance Security
Coding
Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance
Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
  1. DZone
  2. Data Engineering
  3. Databases
  4. Java and MongoDB in PaaS

Java and MongoDB in PaaS

Nathan Gurfinkel user avatar by
Nathan Gurfinkel
·
Feb. 27, 13 · Interview
Like (0)
Save
Tweet
Share
7.08K Views

Join the DZone community and get the full member experience.

Join For Free

  Short prequisites. I'm working in my spare time on personal project, for current easiness and future scalability I chose MongoDB for data, programming language is Java, it's my mother tongue :) Eclipse IDE and Tomcat as web server because of it's popularity and ease of use. To work with MongoDB from Java I chose Morphia. This choice of tools reduced my options to Heroku, AWS, CloudBees, CloudFoundry, Jelastic, OpenShift, DotCloud.

  Google app engine is nice, but it's binds you to their big data and if we are going for PaaS which should mean freedom, this is not an option.

  As I said, I work on this project in my spare time which is scarce and precious. My main requirements were, that deployment should be fast and easy, and service should be free for small development environment.

  From the start I used GitHub as my repository and thought that Heroku would be my natural choice, but my project is built from number of modules and web application is only one of those modules. Now, that I created second web app it's a necessity. While trying to deploy my app to Heroku and similar services where deployment is done by using git, I failed to do so without changing my project structure, also I haven't found any help for this issue, so I moved over.

  Removing git oriented PaaS'es left me with AWS, CloudFoundry, CloudBees and Jelastic.

  AWS is nice, but you have to do a lot of configuration and it's free only for one year for micro instances.

  Jelastic is very nice and simple, but they have free program only for a week.

  CloudFoundry was good, until I found that their version of MongoDB doesn't work with Morphia. Also plugin for Eclipse is still raw and buggy.

  Here I came to CloudBees. I came to it last, because they ask for credit card details to use extended services like MongoDB. Easiness of use and plugin for Eclipse to deploy projects from IDE made it my choice of development environment. In addition to running environment CloudBees also gives git and svn code repositories, but I haven't used it yet. Tip: to see application logs on site you have to route your logs to standard output. Onsite logs representation may be confusing for a large applications with a lot of logging, but there is useful service Papertail that helps to manage logs for those cases.

  All in all I think that PaaS is a great leap in reducing headache for developers who want to concentrate on development and not to lose time on environment maintenance.

MongoDB Java (programming language)

Opinions expressed by DZone contributors are their own.

Popular on DZone

  • How Observability Is Redefining Developer Roles
  • Taming Cloud Costs With Infracost
  • Upgrade Guide To Spring Data Elasticsearch 5.0
  • Real-Time Stream Processing With Hazelcast and StreamNative

Comments

Partner Resources

X

ABOUT US

  • About DZone
  • Send feedback
  • Careers
  • Sitemap

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • Become a Contributor
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 600 Park Offices Drive
  • Suite 300
  • Durham, NC 27709
  • support@dzone.com
  • +1 (919) 678-0300

Let's be friends: