Shared hosting is a type of web hosting service which allows many websites to share a physical web server as well as its resources among hosted websites. In a shared hosting package, ideally a server is split between multiple users and each user ends up sharing a specific amount of bandwidth.
Hence, users share resources like RAM, disk space with other users. Think of it this way- you are living on rent in a house with your roommates. Since you are living in the same house, all resources present in the house will be shared by everyone living in it. Shared hosting functions in the same way.
advantages of shared hosting
Cost-effective - Easy management - no control over features
Cloud hosting is a type of web hosting service wherein you can procure computing resources with the help of a cloud computing facility to host data, web services and solutions. You can use resources of multiple servers rather than restricting yourself to a single server location. In cloud hosting, it is the facilitator of the resources that oversees its set up, security and maintenance.These computing and storage resources are spread across virtual machines to help balance the compute loads.
advantages of Cloud Hosting
Easy scalability - Faster page load time -Recovering lost data