On Thu, Aug 27, 2009 at 6:13 AM, Lewis Taylor<lewisctay...@googlemail.com> wrote: > > I have an imagefield that i want to create a thumbnail for on approval > of the image. The problem is (setup is 2 django instances, load > balancer and DB) if the image is stored on one machine it's not the > cleanest solution to have to get the image from the other server and
We ran into a similar issue in a past project, and if you have scalability concerns, setting up a proper queue system is pretty much the only practical method we thought of. For every image uploaded, add a new task to the queue detailing where the image is located. Then have a separate image processing service running somewhere, ping the queue for new tasks, and sync the processed image to your static server(s). If you really want to store uploaded images directly to the database in blobs, look into writing a custom storage backend: http://docs.djangoproject.com/en/dev/howto/custom-file-storage/ That will lessen syncing issues without needing a task queue, but will make your db server work harder. -- dz --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---