Visuals and media content are much more important for the overall impression of applications. We prefer visuals over textual content. There is no meaning of visuals if they’re not of high quality. With the emergence of cloud environments, we have found a way of effectively storing the data. But the question lies on how to deliver that media to clients. Let’s see how we can leverage Sesame Disk by NiHao Cloud to enhance the performance.
What’s the use case?
Suppose you’re running a website that obviously has high-quality images and probably videos. Rather than storing all content on the webserver and chokes its performance, store all files in a cloud provider and enable public visibility. Nowadays, object storage provides allows publicly accessible links so we can simply paste those links in our web content load in the runtime.
High-level benefits of this setup:
- Enhances webserver performance because we’re not actually storing any media in it.
- No worries regarding managing the media on our own as a cloud provider will maintain.
- Furthermore, we can set CDN for those objects to ensure faster delivery.
Find below a simple code where one webpage is having an image in it. Basically, the image is stored in the NiHao cloud and a link for public access is generated and fed in the code. Click on share in the NiHao cloud console and generate a link. The link will look something like this:
This is as simple as it looks.! Whenever someone will hit your website, the textual and media content will be loaded simultaneously and will look seamless process.
Such setup helps a lot for larger and complex environments and makes the process way more sufficient to manage. And the end-user will also get enhanced performance if CDN is integrated. Sesame Disk offers CDN service by default to ensure clients get the best possible response always. Do read article on lazy loading content which is very much related to article above!