February 7, 2014 | Written by: Ram Vennam
Categorized: Community | How-tos
Share this post:
While most of your applications should work just fine in the cloud, there are a few things that make your application not ready for the cloud. Here’s a big one.
Don’t write to disk….most of the time. Let me explain. The file system is a resource that isn’t persisted. As you application instance gets restarted, updated, scaled or recreated, the file system it sits on changes – you get a new isolated chunk of disk each time. The physical location of your application or application server on disk should not be part of your application design. If you’re using the disk for temporary or cache purposes, you might be OK, but don’t try to avoid storing data in a database. Creating a database and accessing it in BlueMix is super easy!