Here are differences between Server-Side Object Model and the Client-Side Object Model?
Differences between Server-Side Object Model and the Client-Side Object Model
Client-Side Object Model(CSOM) : By using the Client-Side Object Model(CSOM), We are able to access the data the System where your SharePoint is not installed , you can access the data through Web Services , REST, APIs or Java scripts
CSOM is a Microsoft generated collection of libraries that acts as a proxy to the server-side object model
Client Object Model was a new feature of SharePoint 2010, but In SharePoint 2013 it has been enhanced and improved as it has additions for working with search, BCS, taxonomies, workflows and user profiles etc.
There are two assemblies to be referred for working with the Client Object Model.
Following is an example of retrieving a list from the server using Client Object Model.:
ClientContext context = new ClientContext("http://server"); List list = context.Web.Lists.GetByTitle("Tasks"); context.Load(list); context.ExecuteQuery(); Console.WriteLine(list.Title); Console.ReadKey(false);
Server-Side Object Model (SSOM) : By using the Server-Side Object Model (SSOM) you write the code to access the SharePoint data on machine where SharePoint Server is installed, you can use C# or Vb.net
Server Object Model core assembly is Microsoft.SharePoint.dll which is installed in the Global Assembly Cache