cc unit 3
cc unit 3
WEB SERVICES
A web service app of application programming interface that facilitates
communication between different apps over the internet using
standardized protocols such as http, soap, and rest
1. Interoperability allows application written in different programming
languages or running on different platforms to interact seamlessly
2. Standardized communication uses well defined protocols like http/https
and data formats like xml, json
3. Scalability supports distributed computing, enabling systems to scale
efficiently
4. Loose coupling services can evolve independently without affecting
clients. Eg: a weather app does not need to maintain its own weather
database. instead , it can fetch real time weather data by sending an http
request to a third party weather api eg openweathermap. The api
processes the request and returns the latest weather updates in json or xml
format
RESTFUL
1. Representational state transfer is an architectural style rather than a
protocol, first described in 2000. Restful service have gained tremendous
popularity due to their simplicity and alignment with web fundamentals.
2. Built on 6 fundamentals constraints: client-server separation provides
clear separation of concerns between ui and data storage, statelessness
provides each request contains all necessary context, cacheablity
responses must define their cacheablity, uniform interface standardzies
interaction methods, layered systems provide intermediary servers can be
inserted without client knowledged, code on demand gives ability to send
executable code
3. Restful services leverage standard http methods to perform operations,
GET retrieve a resource, POST creates a new resource, PUT update and
existing resource, DELETE removes a resource, PATCH partial resource
updates, HEAD retrieves metadata about a resource
4. Resources in rest can be represented in various formats: JSON is
lightweight and human readable, XML for structured and extensible, HTML
for web browser consumption, Binary format for protocol buffers,
messagepack for efficiency
5. HATEOAS: hypermedia as the engine of application state. Advanced rest
implementation often emply HATEOAS where responses contain
hypermedia links to related resources. This enables discoverablity and
reduces client side hardcoding of urls.
6. Restful apis dominates contemporary web development due to mobile
friendliness which is lightweight JSON payloads reduce bandwidth
consumption, Developer experience which is simple to understand and
implement, scalability which provides stateless nature to support
horizontal scaling, Browser compatibility for native support in javascript
apple. Major platforms providing rest apis include github, twitter, stripe etc
OPERATING SYSTEM
1. An operating system is a system software that acts as an interface
between computer hardware and software app. It manages hardware
resources like cpu, memory, storage and provides services for apps to run
efficiently. Examples windows, linus, macos, unix
2. Key functions: process management that controls program execution ie
multitasking, memory management that allocates ram efficiently, file
system management that organizees data storage, device management
that handles i/o operations, user interface thats provides gui and cli
WORKING OF WEBOS
1. Webos does not interact directly with hardware it relies on a traditional
os to function. Instead it provides a virtual workspace hosted on remote
servers
2. Client device: users computer/phone, runs a web browser, connects to
the webos server via internet
3. Cloud server; hosted by webos provider, stores apps files and os
compliments, processes user commands and sends back results
4. User interface: displayed in the browser, mimics a traditional desktop,
allows drag and drop, file management and app usage.
5. Signup: visit a webos providers website like eyeos or sliveos, create an
account some of them may require a small download
6. Login & access desktop: open the webos in a browser, then the interface
resembles a traditional os like icons, taskbar, apps
7. Use apps & store files: pre installed apps like word processor, email,
media players and cloud storage that save files remotely, access from any
device just login again.