Web Basics · Web and Internet Technology

Client/Server Computing: C/S Computing, Middleware

Watch lectures

Client/Server Computing: C/S Computing, Middleware

SVGVector Architecture Diagram (SVG)
WEB & INTERNET TECHNOLOGY · Module 1★ Theory TopicClient/Server & MiddlewareBEU CSE Sem 6 · Code 105614 · Web BasicsMNEMONICClient asks, server serves. Middleware is the glue between them.Many clients to one server; request goes out, response comes back.Core BreakdownClientProgram that requests a service and shows results (browser, app).Usually holds the user interface and starts every conversation.ServerProvides a shared service: web, database, mail, file or print server.Waits for requests and serves many clients at the same time.MeritsCentral data, easy backup, security and upgrades; scalable.Demerit: the server is a bottleneck and a single point of failure.MiddlewareSoftware between client and server that hides OS and network differences.Gives naming, security, messaging, transactions and load balancing.TypesRPC, message queues, CORBA and Java RMI, ODBC and JDBC, TP monitors.Application servers and web-service gateways are middleware too.Diagram: C/S with MiddlewareClient browser or appNetwork HTTP, SQL, RPCMiddleware translate, route, secureServer web, DB, mailRPCremote callMOMmessage queueJDBCand ODBCC/S: dedicated server · P2P: every node both⚠️ Exam Traps & Viva Favorites① Client/server or peer-to-peer?C/S has dedicated servers and central control.In P2P every node is client and server at once(BitTorrent), with no central authority.② Why do we need middleware?Without it each client needs custom code for everyserver. Middleware hides platform differences somixed systems can interoperate.③ Is a browser a client?Yes. The browser is the client; Apache or Nginxis the web server. The database is anotherserver sitting behind it.Tip: give one example for every definitionMaster Revision Table(learn it row by row!)ItemExampleRoleRemarkClientChrome, mobile appRequests a serviceInitiates the requestWeb serverApache, Nginx, IISServes HTTP contentListens on 80 or 443Database serverMySQL, OracleStores and queries dataAnswers SQLRPCgRPC, Sun RPCCall a remote functionHides the networkMessage queueRabbitMQ, KafkaAsynchronous messagesDecouples systemsData accessODBC, JDBCOne API for many databasesDriver converts callsQUICK FACTSClient starts the request; server waits and repliesMiddleware = software glue: naming, security, messaging, transactions2-tier = client + DB server; 3-tier adds an application serverVERIFIED★ Golden rule: clients request, servers serve,middleware connects the unlike.

1. Client/Server (C/S) computing

Client/Server computing is a distributed model in which work is split between two kinds of programs:

  • Client – requests a service (browser, mobile app). Usually has the user interface.
  • Server – provides the service (web server, database server, mail server). Waits for requests, serves many clients.

They communicate over a network using a protocol (HTTP, SQL over TCP, RPC).

SVGVector Architecture Diagram (SVG)
Client 1Client 2Client 3 SERVERweb / DB / mail requests → ← responses (over network)

Characteristics

  1. Clear separation of service requester and service provider.
  2. One server serves many clients; client initiates, server responds.
  3. Location transparency – client need not know where the server is.
  4. Clients and servers may run on different hardware/OS (platform independence).
  5. Scalable: add more clients or servers.
  6. Resources (data, printers) are centralised and shared.

Examples

Browser ↔ web server; e-mail client ↔ mail server; ATM ↔ bank database; mobile app ↔ cloud API.

Advantages and disadvantages

Advantages Disadvantages
Centralised data, easy backup and security Server is a single point of failure
Easy to upgrade server logic once Network congestion/overload
Resource sharing, cost saving Server cost and maintenance
Scalable and flexible Needs skilled administration

Client/Server vs Peer-to-Peer

C/S P2P
Dedicated server Every node both client and server
Centralised control Decentralised
Easier to secure Harder to manage
Web, email BitTorrent, blockchain

2. Types of servers

File server, print server, application server, database server, web server, mail server, proxy server, DNS server.

3. Tiers (preview)

  • 2-tier: client ↔ database server (client holds UI + business logic).
  • 3-tier: client ↔ application server ↔ database. (Detailed in the next topic.)

4. Middleware

Middleware is software that sits between the client and the server (or between applications) and hides the differences in hardware, OS, network and language. It provides a common way for distributed components to communicate. It is often called "software glue".

SVGVector Architecture Diagram (SVG)
Client app (Java)Client app (JS) Database serverLegacy mainframe MIDDLEWAREtranslateroute, securemanage sessions

Functions of middleware

  • Message passing and protocol translation.
  • Locating servers (naming / directory service).
  • Authentication and security.
  • Transaction management and load balancing.
  • Hiding platform heterogeneity (different OS, languages, databases).

Types

Type Example
Remote Procedure Call (RPC) Sun RPC, gRPC
Message-Oriented Middleware (MOM) RabbitMQ, Kafka, IBM MQ
Object middleware CORBA, Java RMI, DCOM
Database middleware ODBC, JDBC
Transaction Processing monitors Tuxedo, CICS
Application servers / web services Tomcat, JBoss, REST/SOAP gateways

Example: JDBC/ODBC

An application calls a standard API; the driver (middleware) converts calls into the specific database protocol – so the same code works with MySQL or Oracle.

Why middleware matters

Without it every client would need custom code for every server. With it, development is faster, systems interoperate and the architecture scales.

Frequently Asked Questions

QWhat is client/server computing?

A distributed architecture where clients request services and servers provide them, communicating over a network.

QGive examples of clients and servers on the web.

Client: browser. Servers: Apache web server, MySQL database server, SMTP mail server.

QWhat are the advantages of the client/server model?

Centralised data and control, resource sharing, scalability, easier maintenance and security, platform independence.

QDifference between client/server and peer-to-peer?

C/S has dedicated servers and central control; in P2P every node is both client and server and there is no central authority.

QWhat is middleware?

Software between client and server that hides heterogeneity and provides communication, security, naming and transaction services.

QName some types of middleware.

RPC, message-oriented middleware, object brokers (CORBA, RMI), database middleware (ODBC/JDBC), TP monitors, application servers.

QWhy is middleware needed in a C/S system?

To let clients and servers on different platforms and languages interoperate without custom code for each pair, and to provide shared services like security and load balancing.

QWhat is the main disadvantage of client/server?

Server is a bottleneck and single point of failure; heavy traffic can overload the network.

Budget AppAndroid App

Pocketly on Android

Log daily food, travel, and hostel expenses instantly. Set monthly spending limits and see where your money goes without complex spreadsheets.

← All Web and Internet Technology modules