Advertisement
Guest User

Will Panda on database file persistance

a guest
Feb 20th, 2013
154
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.48 KB | None | 0 0
  1. Hey there,
  2.  
  3.  
  4. Thanks for getting back to me so quickly! With regards to your question, it would be much better to store your files in the DB rather than having them stored on the individual instance. The problem is if they're stored directly onto one single session and instance, a user might hit another instance when returning for a following request. It is a much better practice to have everything loaded onto the DB, so that all the instances can access that information, and the user will be able to get to the files regardless of the app instance they hit.
  5.  
  6. Doing it any other way will cause a lot of problems when you try and scale up. There are additional problems if you are routing all requests to one single instance since you might overload it with users all trying to hit the same instance simultaneously.
  7.  
  8. -Will
  9.  
  10. On Wed, Feb 6, 2013 at 7:54 AM, <fuckyourdaddy@numerica.cl> wrote:
  11. Hi Will,
  12.  
  13. Indeed, there is an architectural doubt I would like to share with you people.
  14. I succesfully deployed my app on one server and then on two and that opened my eyes
  15. into that normal load balancing won't suffice for me because what my app does is
  16. file treatment in a tmp directory (which I then clean).
  17. The trouble is, since files will live in the directory that the instance which first serves the request will provision,
  18. I need subsequent requests from the same client to be server by the same instance, or else files will not be available.
  19. I think this is called a sticky session (not sure). So, in short, my question is does EY support such type of load balancing?
  20. Any kind of recommendations or comments on this structure is also welcome.
  21. However, I'm pretty sure putting those files into the database would not be a good idea, would it?
  22. By the way, don't you have a forum? I'd be better off asking this openly.
  23.  
  24. Salutations
  25. Numerico. S.C.L.
  26.  
  27. On 04.02.2013 17:41, Will Adams wrote:
  28. Hi numerico,
  29.  
  30. Hope all is going well with your Engine Yard trial. As you may know,
  31. we've helped thousands of customers deploy serious production
  32. applications in the cloud and would love to share some best practices
  33. that we've learned along the way, including:
  34.  
  35. * System Architecture
  36. * High Availability and Disaster Recovery
  37. * Software Versions
  38. * Database Recommendations
  39. * Third Party Services
  40.  
  41. Can we set up a quick call to discuss?
  42.  
  43. Your PANDA,
  44.  
  45. Will
  46.  
  47. If you believe this email was sent in error, click the following link
  48. to manage your subscriptions [1].
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement