REST vs SOAP API — Protocol Design for Frontend Engineers
Every frontend engineer calls APIs. But how many understand the protocol that carries the request? REST and SOAP represent two fundamentally different philosophies of network communication — one is an architectural style built on resources and HTTP verbs, the other is a formal wire protocol with strict contracts and enterprise-grade security. This article breaks down both from a frontend perspective using the RADIO framework: Requirements, Architecture, Data model, Interface definition, and Optimization.
FrontendX Engineering · System Design Series
What Are We Comparing?
REST (Representational State Transfer) and SOAP (Simple Object Access Protocol) are two dominant approaches to building networked APIs. They answer the same question — how does a client communicate with a server? — with radically different answers.
REST is an architectural style introduced by Roy Fielding in his 2000 PhD dissertation. It treats everything as a resource identified by a URL, manipulated via standard HTTP methods (GET, POST, PUT, DELETE, PATCH). REST has no official standard — it is a set of constraints that produces simple, scalable, cacheable APIs. As of 2026, REST powers over 90% of public web APIs.
SOAP is a W3C-standardized messaging protocol that exchanges structured XML envelopes. It was designed by Microsoft, IBM, and others in the late 1990s for enterprise integration. SOAP messages carry headers for metadata and security, bodies for payload, and are governed by a WSDL (Web Services Description Language) contract. SOAP dominates in banking, healthcare, insurance, and government systems where formal contracts and message-level security are non-negotiable.
This article compares both through the lens of a frontend engineer faced with a real architectural decision. We start with requirements, examine the architectural tradeoffs, look at the data model, define the API contract surface, and conclude with performance optimization strategies. Four diagrams illustrate the key differences.
Key Insight
REST and SOAP are not direct competitors for the same job. REST is an architectural style optimized for the web — resources, caching, statelessness. SOAP is a messaging protocol optimized for enterprise integration — formal contracts, ACID transactions, message-level security. The right choice depends on your domain constraints, not personal preference.
R · Requirements & Scoping
The first question is never "REST or SOAP?" It is "what does this API need to do?" The requirements determine which protocol fits. Here are the clarifying questions I ask when advising teams.
Functional requirements
Resource manipulation: Do you need to create, read, update, and delete entities? REST maps naturally to CRUD via HTTP methods. SOAP requires defining operations in WSDL.
Formal contract: Is a strict, machine-verifiable API contract required? SOAP enforces one through WSDL. REST uses OpenAPI/Swagger as an optional description layer.
Transaction support: Do operations span multiple services and require ACID guarantees? SOAP provides WS-AtomicTransaction. REST relies on the saga pattern.
Security model: Message-level encryption and signing? SOAP has WS-Security with XML Encryption and XML Signature. REST uses HTTPS with OAuth2/JWT for transport-level security.
Transport flexibility: Must the API work over protocols other than HTTP (SMTP, JMS, AMQP)? SOAP is transport-agnostic. REST is tightly coupled to HTTP.
Non-functional requirements
Performance: REST with JSON is significantly faster than SOAP with XML — smaller payloads, faster parsing, built-in HTTP caching. For mobile apps, every kilobyte matters.
Scalability: REST's stateless constraint makes horizontal scaling trivial. Any server can handle any request. SOAP services often need session affinity.
Interoperability: SOAP's strict typing and WSDL contracts guarantee interoperability between any language with a SOAP stack. REST's flexibility can lead to ambiguity.
Developer experience: REST with JSON is intuitive — developers use curl, Postman, and browser dev tools. SOAP requires specialized tooling and XML knowledge.
Browser support: REST works natively with fetch and XMLHttpRequest. SOAP requests must be assembled manually or through a client library.
Tip
A common pitfall is choosing SOAP because "it's more secure." This is a misunderstanding. HTTPS + OAuth2 provides adequate security for most web APIs. SOAP's WS-Security matters only when you need message-level encryption — signing individual XML elements so intermediaries cannot read or tamper with parts of the message. For point-to-point HTTPS, REST + OAuth2 is equally secure.
A · Architecture & Protocol Design
The architectural difference between REST and SOAP is foundational. REST is a resource-oriented architectural style. SOAP is a procedure-oriented messaging protocol. These different philosophies determine everything: how you model your API, how the client interacts with the server, and what tooling you need.
REST — Resources, Not Operations
REST centers on resources. Every entity in your system — a user, an order, a product — is a resource identified by a URL. The client manipulates resources through a uniform interface: HTTP methods. GET reads, POST creates, PUT replaces, PATCH updates, DELETE removes. The server manages resource state; the client manages application state.
The six constraints of REST are what make it REST rather than "just HTTP APIs": uniform interface, stateless, cacheable, client-server, layered system, and code on demand (optional). An API that uses HTTP verbs but violates these constraints — for example, using a GET request with a JSON body to update a resource — is not truly RESTful.
Figure 1 — REST API architecture. Resources are identified by URL paths and manipulated via standard HTTP methods. Each request is stateless and carries all necessary context in headers.
REST requests are simple HTTP messages. The method indicates the intended action. The URL identifies the resource. Headers carry authentication, content negotiation, and caching directives. The body carries the payload — typically JSON. Status codes communicate the result: 200 for success, 201 for created, 204 for deleted, 400 for bad request, 404 for not found, 500 for server error.
rest-request.tstypescript
// REST — fetch a user with their profileconst response = await fetch( "https://api.example.com/v2/users/42?include=profile", { method: "GET", headers: { Authorization: "Bearer eyJhbGci...", Accept: "application/json", }, },);const user = await response.json();// { "id": 42, "name": "Alice", "profile": { "avatar": "...", "bio": "..." } }
SOAP — Operations Inside an Envelope
SOAP treats API interactions as operations invoked on a service. Every message is wrapped in a standard XML Envelope with two sections: the Header (metadata like authentication, transaction ID, routing instructions) and the Body (the actual request or response payload). The envelope is what makes SOAP a "wire protocol" — it dictates the exact byte format of every message.
The Header is optional but powerful. Any node in the message path can process header entries. The mustUnderstandattribute tells the receiver "you must process this header or reject the message." This is how SOAP achieves end-to-end security and reliable messaging — intermediaries can add or process headers without touching the payload.
Figure 2 — SOAP API architecture. Messages are wrapped in a standard XML Envelope with a Header (metadata) and Body (payload). WSDL defines the contract. WS-Security provides enterprise-grade message-level security.
REST models everything as resources (nouns) manipulated via HTTP methods (verbs). SOAP models everything as operations (verbs) invoked on a service. REST asks 'what resource are you accessing?' SOAP asks 'what operation do you want to execute?'
State: Stateless vs Potentially Stateful
REST mandates statelessness — each request contains all context the server needs. SOAP can maintain session state via WS-Addressing and correlation IDs. Statelessness makes REST trivially scalable but pushes complexity to the client.
Contract: Optional vs Required
REST APIs are described by OpenAPI/Swagger as an optional documentation layer. SOAP requires a formal WSDL contract that clients use to generate native stubs. The WSDL is the source of truth — the service must match it exactly.
Transport: HTTP-only vs Agnostic
REST is coupled to HTTP — it uses HTTP methods, status codes, and headers as integral parts of the architecture. SOAP is transport-agnostic: the same XML envelope can travel over HTTP, SMTP, JMS, or AMQP. This matters in enterprise environments with legacy messaging infrastructure.
Versioning: URL/Header vs Namespace
REST versions by URL path (/v1/, /v2/) or Accept header. SOAP versions by XML namespace — different namespace = different contract. Multiple versions of the same service can coexist at the same endpoint, differentiated by namespace.
Note
The statelessness requirement in REST is frequently misunderstood. Stateless means the server does not store client session state. It does not mean the application cannot have state. The client manages application state and sends it to the server with each request. This is why REST scales well — any server can handle any request without knowing what happened before.
D · Data Model & Message Format
REST and SOAP represent data in fundamentally different ways. The data model choice affects payload size, parsing overhead, type safety, and developer experience.
REST data model — JSON by convention
REST has no mandated data format. The most common choice is JSON — lightweight, natively parsed by JavaScript, and easily consumed by mobile apps. The resource representation is the core data unit. Each resource is a JSON object with properties that map to the resource's attributes. Related resources are referenced by URL (hypermedia) or included inline via query parameters like ?include=profile.
REST data models are typically flat per resource. Each endpoint returns a specific resource shape. If the client needs related data, it makes additional requests or uses a pre-agreed embedding strategy. GraphQL emerged partly because REST's per-resource data model forces over-fetching or under-fetching.
Aspect
REST (JSON)
SOAP (XML)
Payload size (avg)
~200-500 bytes (compact)
~2-5 KB (verbose XML envelope)
Parsing speed (browser)
Native JSON.parse() — nanoseconds
DOMParser — milliseconds
Type safety
Runtime only (TypeScript adds compile-time)
Runtime + compile-time via XSD schemas
Binary data
Base64-encoded in JSON string
MTOM/XOP — optimized binary transport
Schema evolution
Backward compatible — add fields freely
XSD versioning — namespace-based
SOAP data model — Strict XML with XSD
SOAP mandates XML for message encoding. The data model is defined by XSD (XML Schema Definition) inside the WSDL. Every field has a type, every array has an element name, every optional field is explicitly marked. This strictness means that a SOAP client generated from WSDL will never encounter a surprise field — the contract guarantees the shape of every message.
The downside is verbosity. A simple "get user" request that takes 200 bytes in REST JSON requires 2-5 KB of XML with the envelope, headers, and namespace declarations. On mobile networks, this overhead directly impacts battery life and latency.
The XSD type system supports complex types, inheritance (extension and restriction), enums, unions, and constraints (min/max length, pattern matching). This makes it far more expressive than JSON Schema for defining precise data contracts. Enterprise integration tools leverage this to generate strongly-typed clients in Java, C#, and other languages.
Warning
If you are a frontend engineer consuming a SOAP API directly from the browser, you will need to construct XML strings manually or use a library like soap-client or soap (Node.js). Browser-side XML parsing is supported via DOMParser and XMLSerializer, but the ergonomics are poor compared to JSON. In practice, most frontend teams put a thin REST proxy in front of SOAP services to insulate the UI from XML.
I · Interface Definition (API)
The API contract defines how a client discovers and invokes operations. REST and SOAP have radically different approaches to this contract.
REST API contract — OpenAPI
REST does not require a formal contract. The API is defined by its URL structure, HTTP methods, and the shape of its JSON responses. Developers discover the API through documentation. OpenAPI (formerly Swagger) has become the de facto standard for describing REST APIs in a machine-readable format. An OpenAPI specification defines paths, parameters, request bodies, response schemas, authentication, and metadata.
openapi.yamlyaml
openapi: "3.1.0"info: title: User API version: "2.0.0"paths: /users/{userId}: get: summary: Get user by ID parameters: - name: userId in: path required: true schema: { type: integer } - name: include in: query schema: type: string enum: [profile, posts, all] responses: "200": description: User object content: application/json: schema: $ref: "#/components/schemas/User" "404": description: User not foundcomponents: schemas: User: type: object properties: id: { type: integer } name: { type: string } email: { type: string, format: email } required: [id, name, email]
OpenAPI is descriptive, not prescriptive. The API does not need to match the spec for the client to call it — but if it does, tools can generate client libraries, mock servers, and API documentation automatically. This is the "contract-later" approach: build the API, then describe it.
SOAP API contract — WSDL
SOAP requires a formal WSDL contract that defines every operation, its input/output messages, the data types used, and the transport binding. The WSDL is the "contract-first" approach: define the contract, then implement the service. Clients generate native stubs from the WSDL — strongly-typed proxy classes that handle XML serialization and deserialization automatically.
A WSDL has four critical sections. Types defines the data model using XSD — every field, its type, constraints, and relationships. Messages defines the abstract input and output for each operation. PortType groups operations into logical interfaces — equivalent to an interface in TypeScript. Binding specifies the transport protocol and serialization format — typically SOAP over HTTP with "document/literal" style.
REST: Contract-later (OpenAPI)
Build the API, then generate documentation. Clients consume via generic HTTP libraries. Versioning is done through URL paths or headers. Flexibility is high; strict compliance is optional.
SOAP: Contract-first (WSDL)
Define the WSDL first, then implement the service. Clients generate native stubs from the WSDL. Versioning is done through XML namespaces. Compliance is mandatory — the service must match the contract exactly.
Code Generation: OpenAPI vs WSDL
Both support code generation, but the quality differs. WSDL generators (wsdl2java, svcutil) produce strongly-typed native classes with full XML serialization. OpenAPI generators (openapi-generator, Orval) produce TypeScript types and fetch wrappers — the typing is lighter but more flexible.
Key Insight
The contract-first approach of SOAP makes it ideal for B2B integrations where both parties need a legally-binding API specification. The contract is not just a technical artifact — it is part of the service level agreement. WSDL changes require both parties to agree. OpenAPI contracts, by contrast, are documentation that can evolve with the API.
O · Optimization & Performance
Performance differences between REST and SOAP are substantial and matter most on the frontend — in the browser and on mobile devices where bandwidth, battery, and CPU are constrained.
Payload size and transmission
A REST JSON response for a user object might be 200-300 bytes. The same data in a SOAP XML envelope requires 2-5 KB — a 10x to 20x increase. On a 3G mobile connection with 1 Mbps throughput, that means REST responses arrive in ~2ms while SOAP responses take ~40ms. Over 100 API calls, that difference adds up to 4 seconds of additional latency for the SOAP-based app.
Parsing overhead
JSON parsing is a native C++ operation in modern browsers —JSON.parse() takes nanoseconds. XML parsing requires the DOM parser, which creates a full document tree. A 5 KB SOAP message takes approximately 0.5-1ms to parse in Chrome. That does not sound like much, but on a page that makes 20 parallel API calls, it adds 10-20ms of blocking time on the main thread.
Caching strategies
REST benefits from HTTP's built-in caching. The Cache-Control header tells browsers and proxies how long to cache a response. GET requests are cacheable by default. This reduces server load and improves latency for repeated requests — the browser returns cached data without hitting the network.
SOAP typically uses HTTP POST for all operations (even read-only queries), which browsers do not cache. There is no equivalent ofCache-Control in the SOAP specification. Enterprise SOAP stacks implement caching at the application level, but the browser's HTTP cache is effectively useless for SOAP traffic.
Performance optimization strategies
Strategy
REST
SOAP
HTTP caching
Built-in via Cache-Control, ETag
Not applicable (POST-only)
Payload compression
gzip/Brotli — 80%+ reduction on JSON
gzip — 70%+ reduction on XML (still larger)
Connection reuse
HTTP/2 multiplexing (browser native)
HTTP keep-alive (same connection, same envelope overhead)
Client-side caching
Service Worker Cache API, SWR
Custom SOAP response cache
Partial responses
Query params (?fields=name,email)
Requires separate WSDL operation
Batching
HTTP/2 multiplexing or custom batch endpoint
SOAP attachment / multiple bodies
Tradeoff summary
For frontend applications, REST with JSON is almost always the better performer. The smaller payloads, native JSON parsing, and HTTP caching combine to produce measurably faster page loads and lower data usage. SOAP's performance overhead is acceptable in enterprise environments where the backends are on a local network and the extra latency is negligible compared to the value of formal contracts and message-level security.
Note
If you are forced to consume a SOAP API from the frontend, the most effective optimization is to proxy it through a thin REST layer. Your backend team can maintain a REST facade that translates HTTP requests to SOAP calls. The frontend never touches XML. This is the strangler fig pattern applied to API protocols.
Security Considerations
Security is often the deciding factor between REST and SOAP — but the decision is frequently based on outdated assumptions. Here is an honest assessment of both.
REST security model
Transport-level: HTTPS provides encryption in transit. This is sufficient for most use cases. The entire payload is encrypted between client and server.
Authentication: OAuth2 is the standard for REST APIs. Bearer tokens (JWT) are passed in the Authorization header. Token expiration and refresh are well understood.
Authorization: Role-based access control (RBAC) or attribute-based access control (ABAC) at the API gateway or application layer.
Limitation: HTTPS protects data in transit but not at intermediaries. If your API passes through an enterprise gateway that needs to inspect or transform the payload, the gateway must terminate the TLS connection and re-encrypt it — creating a point of vulnerability.
SOAP security model
Message-level: WS-Security encrypts and signs individual XML elements. An intermediary can decrypt specific parts of the message without exposing the entire payload.
Identity: SAML assertions carry identity information inside the SOAP header. The receiver validates the assertion against a trusted identity provider.
Integrity: XML Signature signs specific elements. Tampering is detected even if the message passes through multiple nodes.
Replay prevention: WS-Security Timestamps include creation and expiration times. Combined with nonces, this prevents replay attacks.
The key insight: SOAP's WS-Security adds security at the message level, not just the transport level. This matters in multi-hop scenarios where a message passes through multiple intermediaries—an enterprise ESB, a logging gateway, a protocol bridge. Each intermediary can process relevant headers without decrypting the entire message. REST achieves nothing equivalent without custom application-level encryption.
Warning
WS-Security is complex and expensive. Each XML Signature requires canonicalization (which normalizes the XML before signing) — a computationally expensive operation. If you do not have a multi-hop message path, you likely do not need WS-Security. HTTPS + OAuth2 covers 95% of API security requirements. Adding WS-Security to a point-to-point HTTPS connection adds complexity without meaningful security benefit.
Testing Strategy
REST and SOAP require different testing approaches due to their different contract models and tooling ecosystems.
REST testing
Unit testing: Mock the fetch/axios call using MSW (Mock Service Worker). Define handlers for each URL pattern and return fixtures. MSW intercepts at the network level — you do not need to mock module imports.
Integration testing: Use a real server with test containers or a lightweight server like json-server. Verify that endpoints return correct status codes and body shapes.
Contract testing: Tools like Pact write consumer-driven contracts. The frontend publishes its expectations; the backend validates against them in CI.
Tooling: curl, Postman, Bruno, HTTPie. OpenAPI specs can generate mock servers and test collections automatically.
SOAP testing
Unit testing: Use a SOAP client library and mock the transport layer. Assert on the generated XML or parse the response with xpath.
Contract validation: The WSDL itself is the test. Validate all requests and responses against the WSDL schema. Tools like XMLSpy or SoapUI automate this.
SoapUI: The de facto standard for SOAP testing. Import a WSDL and SoapUI generates test requests, validates responses against the schema, and supports load testing.
Mocking: SoapUI can simulate SOAP services from WSDL. This is essential when the real service is not available during frontend development.
Tip
When testing SOAP interactions from the frontend, use a REST-to-SOAP proxy during development. The proxy translates JSON requests to XML messages and back. This lets you test with standard frontend tooling (fetch, MSW) while the actual wire format remains SOAP. The proxy itself can be tested with SoapUI independently.
Decision Framework
Here is the raw tradeoff comparison and a decision framework for choosing between REST and SOAP based on your specific requirements.
Figure 3 — REST vs SOAP comparison across key dimensions. REST dominates modern web APIs while SOAP persists in enterprise and financial systems where formal contracts and message-level security are mandated.
comparison.txttext
┌─────────────────────────┬──────────────────────────┬──────────────────────────┐│ Criteria │ REST │ SOAP │├─────────────────────────┼──────────────────────────┼──────────────────────────┤│ Protocol │ Architectural style │ Wire protocol (W3C) ││ Transport │ HTTP/HTTPS only │ HTTP, SMTP, JMS, MQ ││ Message format │ JSON, XML, YAML, etc. │ XML only (strict schema) ││ Contract │ Optional (OpenAPI) │ Required (WSDL) ││ State │ Stateless by design │ Can be stateful ││ Caching │ Built-in HTTP caching │ Typically no caching ││ Security │ HTTPS, OAuth2, JWT │ WS-Security, SAML ││ Performance │ Lightweight payloads │ XML parsing overhead ││ IDL / Code gen │ OpenAPI → any language │ WSDL → native stubs ││ Transaction support │ Manual (saga pattern) │ WS-AtomicTransaction ││ Browser support │ Native (fetch, XMLHttp) │ Requires SOAP client ││ Payload size │ Small (JSON ~200B) │ Large (XML ~2KB+) ││ Adoption │ 90%+ of web APIs │ Enterprise / legacy ││ Learning curve │ Low │ High │└─────────────────────────┴──────────────────────────┴──────────────────────────┘
Figure 4 — Decision framework for choosing between REST and SOAP. The choice depends on domain requirements: consumer-facing web APIs favor REST, while enterprise integrations with formal contracts and ACID transactions favor SOAP.
Practical recommendations
Web/mobile SaaS product → REST
Start with REST. It is simpler, faster, cacheable, and works natively in browsers and mobile apps. Your product will iterate quickly, and REST's flexibility supports rapid API evolution. Add OpenAPI documentation early — it pays for itself on day one.
Enterprise B2B integration → SOAP
If you are integrating with a bank, insurance company, or government system, you will likely consume SOAP whether you want to or not. Accept it. Invest in a REST facade layer to shield your frontend from XML. The WSDL contract is a feature, not a bug — it guarantees interoperability.
Internal microservices → REST or gRPC
For internal services, REST is the default. If you need strict typing and better performance, consider gRPC (Protocol Buffers over HTTP/2). gRPC fills the gap between REST's flexibility and SOAP's strictness for internal service-to-service communication.
Financial/banking systems → SOAP
Financial systems require ACID transactions across services, formal audit trails, and message-level security. SOAP's WS-AtomicTransaction, WS-Security, and formal contracts are not overhead — they are requirements. Do not fight the protocol; build a REST facade for your frontend.
Hybrid: REST frontend, SOAP backend (most common)
The vast majority of real-world architectures use both. The frontend consumes a REST API. The REST layer calls SOAP services behind the scenes. This gives you modern developer experience on the frontend with enterprise-grade integration on the backend.
Key Insight
The REST vs SOAP debate is largely settled: REST dominates new development, and SOAP persists in existing enterprise ecosystems. The important skill is not choosing one over the other — it is knowing when each is appropriate and how to build bridges between them. A frontend engineer who can consume a SOAP API through a REST facade is far more valuable than one who dogmatically insists on "REST only."
Migration strategy: SOAP → REST
If you are migrating a legacy SOAP API to REST, do not attempt a big-bang rewrite. The strangler fig pattern lets you incrementally replace SOAP endpoints with REST equivalents while keeping the old system running.
MIGRATION_STRATEGY.mdtypescript
// Phase 1: Strangler Fig — Route by consumer // Legacy SOAP service stays. New REST endpoints serve new consumers. // Old SOAP clients keep hitting the old endpoint. // // GET /api/v2/users/42 ← new REST endpoint // POST /soap/user ← legacy SOAP endpoint (still active) // // Phase 2: REST facade over SOAP backends // A thin REST API layer translates HTTP requests into SOAP calls. // The frontend never touches XML — the facade handles it. // // Phase 3: Migrate business logic // Move core logic from SOAP services to new REST services. // SOAP endpoints become thin wrappers for backward compat. // // Phase 4: Decommission // When no consumers use SOAP, remove the endpoints. // Archive WSDL files for audit compliance.
The REST facade pattern is the most pragmatic approach for frontend teams dealing with SOAP backends. A thin Node.js or Cloudflare Worker translates HTTP requests into SOAP calls. The frontend never knows XML exists. The facade handles authentication, header assembly, XML parsing, and error mapping. When the backend eventually migrates to REST, the facade gets simpler — or disappears entirely.
Key Takeaways
REST is an architectural style; SOAP is a protocol. REST defines constraints (stateless, cacheable, uniform interface) that produce scalable web APIs. SOAP defines a message format (XML Envelope) and a contract language (WSDL) for enterprise integration.
JSON vs XML is not the real difference. The real difference is contract model (optional vs required), transport coupling (HTTP-only vs agnostic), and security scope (transport-level vs message-level).
REST wins for web and mobile. Smaller payloads, native JSON parsing, HTTP caching, and stateless scaling make REST the clear choice for consumer-facing applications. 90%+ of public APIs use REST.
SOAP wins for enterprise integration. Formal WSDL contracts, WS-Security, ACID transactions, and transport agnosticism make SOAP the standard for banking, healthcare, insurance, and government.
The hybrid pattern is the most common in practice. A REST facade consumes SOAP backend services. The frontend sees JSON; the backend speaks XML. This gives you the best of both worlds without forcing a binary choice.
Do not use SOAP's security argument as a default. HTTPS + OAuth2 covers 95% of use cases. WS-Security is justified only when you need multi-hop message paths, element-level encryption, or SAML-based identity propagation across trust boundaries.
Use the strangler fig pattern for migration. Do not rewrite SOAP to REST overnight. Route new consumers to REST, keep SOAP for legacy clients, and gradually decommission SOAP endpoints. A REST facade makes this migration transparent to the frontend.
The landscape is evolving. gRPC (HTTP/2 + Protocol Buffers) fills the performance gap. GraphQL fills the flexibility gap. But REST and SOAP are not going away — they are the foundation that every frontend engineer needs to understand.
REST and SOAP represent two eras of API design — the web-native resource model and the enterprise message model. The best engineers do not pick a side. They understand both, know when each is appropriate, and build bridges between them. Your job as a frontend engineer is not to argue about protocols — it is to deliver working software that meets your users' needs. Choose the tool that fits the job, and know how to integrate when the answer is "both."