django - How to forward image from internal REST service -
I have a design site that includes some media in the form of images, audio and video. Object storage will be retrieved from the REST API which is not accessible to the outside.
I have created a quick prototype, where a Django view / object is callable on / which in turn returns the internal object storage REST API and the object. Media has been shown using HTML 5 tags.
How can I make the best calls to my internal REST API without having to show performance problems by having everything through the DEGENGO? It can work fine to go with my current solution, but I am a little worried about serving big files like this. Is there a better way? I call the rest of the internal service through a third party dragon library which manages authentication and so on. If this happens then the site TomCase server will be likely to run in production.
The site is not expected to have too much traffic, but video files can be large enough.
Hopefully I explain you correctly - a general approach to distribute through REST Pointing to files files is to distribute the URI. I should depend on the client how they can be retrieved. This prevents you from performance issues.
Comments
Post a Comment