Creating Application To Hold Photos and Videos [closed] - mysql

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 7 years ago.
Improve this question
So if I were to developer a simple application that would store a user's photos and videos, how should I store them. I was thinking of using a cloud service like amazon to store photos/videos and store their urls in a mySQL database. But I was wondering if there are any other better approaches? What does Facebook/Instagram do?

This will attract subjective answers but if you want to use cloud services, you can definitely store the actual photos/videos on the cloud itself. And as you mentioned just store the link the database
The word you might want to research is CDN, Amazon has one service called Amazon S3
Edit, quick Google showed that Instagram is using Amazon S3. You can read here

Related

Is there a way to make an upload to AWS bucket from the web [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 1 year ago.
Improve this question
I have a website and I want to have an upload button that will, instead of uploading to a certain directory on my webroot, upload to an AWS bucket. How can I do this? Will I need a server-side scripting language?
Thanks
There is an example of this use case. In this AWS tutorial, a Spring boot application is used that lets a user upload images to an Amazon S3 bucket.
So this is possible with a web application. For details, see this URL:
https://github.com/awsdocs/aws-doc-sdk-examples/tree/master/javav2/usecases/creating_photo_analyzer_app

Should each website have a different MySQL user for a single database? [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 2 years ago.
Improve this question
If I have multiple websites that access the same MySQL database - should each website use a different MySQL user, or is it ok to use the same user for all of the website?
The database and websites are on the same server.
Are there any pros or cons for each configuration?
I think it depends if you're the only one that's accessing the database, and what kind of website it is. If you're making websites for clients with WordPress for example, or any other CMS where the database credentials are saved in an accessible file (like wp-config), you definitely want to have different databases.
In case you're the only one accessing the database and the websites are all your own, I guess you could use the same user. I think I'd use different ones, even if it's just for clarity, but there is something to say for having just one account regarding security. Having just one account with a strong password means there are less accounts that could get hacked.

Which database for storing file paths? [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 4 years ago.
Improve this question
I'm building an application with the instant messaging functionality.
The application will allow the users to send files/images as well as normal text messages.
I decided to take the approach with storing the files on the filesystem and write only the file paths to the database. There will be no updates to the files (only insertions and deletions).
Which database would be the best for storing a large amount of file paths, that would be easy to query for a certain user files?
I would go with MongoDB. My experience is that a document based approach using a single Messages collection would be best. Each message document then contains all of the file paths. This eliminates joins and better supports potential future functional requirements changes.
MongoDB also provides great ways to deal with old messages such as TTL indexes.

Facebook Timeline Database? [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 6 years ago.
Improve this question
I was reading an article about facebook timeline https://www.facebook.com/note.php?note_id=10150468255628920
I always thought this kind of core produces would prefer Cassandra. However it is using MySQL/InnoDB.
Could anyone briefly explain why?
Available internal / external expertise with MySQL (it's easier to google solutions for existing problems)
Cassandra is much harder to reason about due to eventual consistency and limited transaction support
Moving to a new datastore is a lot of pain and it doesn't seem to be justified
You can check out the slides below for their usecases:
MySQL at Facebook
Scale at Facebook

PAD (Portable Application Description) files for shareware / freeware [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 8 years ago.
Improve this question
I've been told that I should include PAD files with the freeware applications I distribute so hosting sites can list the information correctly and check for updates, etc.
Can you give me some info on using PAD files? Here are general questions which come to mind:
Is it worth the effort?
Do you use PADGen or an online tool like www.padbuilder.com?
Do you digitally sign yours?
I do use padgen, it does not take too long to make a pad file, but what takes time is submitting it... just copy+paste stuff from your marketing material into it.
keep storing all your pad files on your webserver and new version updates are listed in 1000+ small shareware/software sites automatically. however, download amounts from these sites are usually < 1000/mo.
not signed mine.