Chapter 5
E-Commerce Technology and Digital Architecture
Bachelors Program in Entrepreneurship
E-Commerce & Digital Entrepreneurship
•
Bachelor
E-Commerce Technology and Digital Architecture
Introduction and Context
E-commerce is not merely a website with a shopping cart. It is a coordinated digital system that connects customer interfaces, product information, pricing, payments, fulfilment, customer service, analytics and governance. The quality of this architecture affects speed to market, operating cost, scalability, security and the ability of an entrepreneurial venture to experiment.
For an entrepreneur, technology architecture is a strategic choice. A small firm may begin with a hosted platform and standard templates, while a rapidly growing firm may later require application programming interfaces (APIs), specialized databases, a headless storefront or a composable architecture. The appropriate choice depends on the venture’s resources, differentiation strategy, regulatory obligations and expected growth—not on the assumption that the newest architecture is automatically the best.
Learning Objectives
By the end of this chapter, you should be able to:
Compare hosted, SaaS, open-source, headless and composable commerce solutions.
Explain the roles of domains, cloud services, APIs, databases and content-management systems.
Describe common e-commerce integrations and the principles of secure digital architecture.
Evaluate build-versus-buy decisions using strategic, financial and operational criteria.
Recommend an architecture appropriate to an entrepreneurial venture.
1. The Architecture of an E-Commerce Business
Digital architecture is the organized structure of technologies, data, interfaces, processes and controls that deliver a digital business service. A typical commerce system contains several layers:
Experience layer: web pages, mobile applications, marketplaces, social-commerce interfaces and in-store devices.
Data layer: transactional databases, customer data, analytics events, logs and backups.
Integration layer: APIs, webhooks, message queues and connectors to external systems.
Infrastructure and security layer: hosting, networks, identity management, monitoring, encryption and recovery mechanisms.
Layered e-commerce digital architecture
Figure: Layered e-commerce digital architecture
Figure: A simplified layered model of e-commerce architecture. Data and control flows may operate in both directions, even though the diagram emphasizes service dependencies.
The layers are conceptually distinct but operationally interdependent. A fast website cannot compensate for inaccurate inventory data, and a powerful order system cannot create trust if payment security is weak.
2. Major Commerce-Platform Models
Hosted commerce
A hosted platform is operated on infrastructure supplied by a vendor or hosting provider. The customer generally rents the software and infrastructure, often through a subscription. Hosted services reduce the need to administer servers, install patches or configure networks. They are attractive to early-stage firms because launch can be rapid and technical staffing requirements are limited.
Limitations include dependence on the provider, restrictions on customization, recurring fees and possible difficulty migrating data. Contract terms should be examined for data export, service availability, payment processing, transaction charges and termination rights.
SaaS commerce
Software as a Service (SaaS) is a hosted software model in which the provider manages the application and normally delivers upgrades to many customers through a shared or logically separated service. SaaS commerce commonly provides themes, catalogues, checkout, analytics, extensions and administrative tools.
SaaS is not identical to “cloud” in general. Cloud computing is a broad delivery model; SaaS specifically describes a managed application consumed as a service. SaaS is useful where standard processes are acceptable and the entrepreneur values predictable operations. It can be less suitable where a firm requires unusual pricing logic, extensive control over data location or deep modification of core workflows.
Open-source commerce
Open-source commerce software makes source code available under a defined licence. A business may self-host it or pay an agency or managed provider to operate it. Open source can support deep customization and reduce dependence on a single vendor, but the firm remains responsible—directly or indirectly—for hosting, security updates, compatibility testing, backups and support.
“Open source” does not mean cost-free. Total cost includes development, infrastructure, maintenance, extensions, security response and opportunity cost. Licence obligations must also be assessed, especially when modified software is distributed or combined with other components.
Headless commerce
In a traditional or coupled platform, the presentation layer and commerce engine are closely integrated. In a headless model, the customer-facing front end is separated from the commerce back end and communicates through APIs. A business can therefore create a distinctive web, mobile, kiosk or voice experience while reusing commerce services.
Advantages include channel flexibility, independent front-end development and potentially improved performance. Costs include greater architectural complexity, the need for API design and testing, and responsibility for coordinating systems that a coupled platform would have integrated automatically. Headless is a design pattern, not necessarily a product category.
Composable commerce
Composable commerce assembles specialized, replaceable capabilities—such as search, payments, promotions, product information, checkout and order management—through APIs and integration services. It follows a “best-fit components” logic rather than obtaining every function from one suite.
Composable architecture can enable differentiated experiences and selective replacement of components. However, integration becomes a central capability. Failures may occur at boundaries between vendors, and the business must manage contracts, observability, identity, data consistency and version changes. A composable system is justified when the expected strategic value of flexibility exceeds the cost of coordination.
Comparison
Model
Main strength
Main risk
Appropriate context
Hosted
Rapid deployment
Vendor and platform dependence
Early-stage or standard retail
SaaS
Managed operations and upgrades
Limited control and customization
Lean teams and predictable processes
Open source
Control and extensibility
Maintenance and security responsibility
Firms with technical capability
Headless
Flexible customer experiences
Integration and development complexity
Multiple channels or differentiated UX
Composable
Specialized, replaceable services
Coordination and failure at interfaces
Scale, complexity and strong engineering capability
These models are not mutually exclusive. An open-source system may be hosted; a SaaS platform may expose APIs; a composable system may include both purchased and internally built components.
3. Core Technical Components
Domains, DNS and certificates
A domain is the human-readable address of a digital service. The Domain Name System (DNS) translates a domain name into technical routing information. Records may identify web servers, mail services and verification settings. Entrepreneurs should control the registrar account, enable multi-factor authentication, document ownership and separate renewal responsibility from a single employee.
HTTPS uses Transport Layer Security (TLS) to protect communication between a browser and a service. A valid certificate helps authenticate the domain and encrypt traffic, but it does not prove that the business itself is trustworthy. Payment pages, account pages and administrative interfaces should use HTTPS, with secure cookie settings and appropriate redirect policies.
Cloud services
Cloud services provide computing, storage, databases, networking and managed software through remotely operated infrastructure. Common service categories include:
Infrastructure as a Service (IaaS): virtual machines, networks and storage; flexible but operationally demanding.
Platform as a Service (PaaS): managed runtime environments and developer services; reduces infrastructure administration.
SaaS: complete applications delivered to users.
Serverless services: execution or data services managed by a provider, often billed by use; useful for event-driven workloads but subject to provider constraints.
Cloud architecture does not automatically guarantee scalability, availability or security. Poor permissions, untested recovery procedures and unmonitored costs can occur in any cloud.
A basic availability measure is:
Availability = Uptime ÷ (Uptime + Downtime)
Uptime and downtime must use the same unit, such as minutes, and the measurement period and exclusions must be defined. For example, 43,190 minutes of uptime and 10 minutes of downtime give approximately 99.977% availability. This measure does not describe performance, correctness or security; a system can be available but return incorrect prices.
APIs and event integration
An API is a defined method through which software requests or supplies data or operations. A REST API commonly uses HTTP methods such as GET, POST, PUT or DELETE and exchanges structured representations, often JSON. GraphQL allows clients to request specified fields through a query model. The choice should follow integration requirements, governance and team capability rather than fashion.
A webhook is an event notification sent from one system to another, such as “payment captured” or “order fulfilled.” APIs are often request-driven; webhooks are event-driven. Robust integrations require authentication, authorization, input validation, rate limits, timeouts, retries, logging and version management. Because network requests may be repeated, operations such as payment capture or order creation should be designed for idempotency: repeating the same request should not unintentionally create duplicate business effects.
Databases and data architecture
Relational databases organize structured data into tables with relationships and constraints. They are well suited to orders, line items, customers and payments where transaction integrity matters. A transaction should preserve the relevant consistency rules—for example, an order should not be marked paid if the payment record has failed.
NoSQL databases include document, key-value, column and graph approaches. They may support flexible structures or high-volume access patterns, but flexibility does not eliminate the need for data modelling. Selection should consider access patterns, consistency requirements, transaction scope, scale, reporting and operational expertise.
A commerce venture should distinguish:
System of record: the authoritative source for a data domain, such as an order system for order status.
Operational store: data used directly by an application.
Data warehouse or lake: data prepared for analysis, reporting or machine learning.
Cache: temporary, quickly accessible copies that require expiry or invalidation rules.
Duplicate customer, product or inventory records create operational risk. Data ownership, identifiers, retention periods and reconciliation procedures should be documented.
CMS, PIM and DAM
A Content Management System (CMS) manages editorial content such as pages, articles and campaigns. A Product Information Management (PIM) system manages structured product attributes, specifications, variants and channel-specific enrichment. A Digital Asset Management (DAM) system organizes images, video and other media. Small firms may combine these functions, but the conceptual distinction matters as catalogues and channels grow.
Content governance should define approval roles, version history, accessibility standards, image rights, localization and publication schedules. Artificial intelligence can assist with product copy, tagging, translation or search enrichment, but human review is necessary for factual accuracy, discriminatory language, intellectual-property risk and compliance claims.
The customer views a product and the system retrieves price, availability and content.
The cart records products, quantities, taxes, discounts and delivery choices.
Checkout validates customer and delivery information.
A payment provider authorizes or captures payment.
The commerce system creates an order and reserves or deducts inventory.
Fulfilment receives the order and returns shipment status.
Notifications, accounting records and analytics events are generated.
Returns, refunds and customer-service actions update the relevant systems.
Each handoff needs an owner, an error state and a recovery method. For example, if payment succeeds but the order message fails, the system needs reconciliation rather than silently creating a second payment attempt.
5. Cybersecurity, Privacy and Governance
Security is a business responsibility, not only an IT function. Important controls include least-privilege access, multi-factor authentication, secure software development, dependency updates, network and application monitoring, backups, vulnerability management and incident-response plans.
Threats include credential theft, payment fraud, malicious extensions, injection attacks, cross-site scripting, insecure APIs, supply-chain compromise, ransomware and denial-of-service attacks. Controls should follow risk: payment and identity systems generally require stronger protection than a public marketing page, although every component can become an attack path.
Payment-card obligations may be reduced by using a reputable payment service provider, but outsourcing does not remove all responsibility. Privacy laws may require a lawful basis for processing, transparency notices, data minimization, access and deletion procedures, retention controls and safeguards for international transfers. Exact duties depend on jurisdiction and business activity; professional legal advice is appropriate.
Governance questions include: Who may change prices? Who approves promotions? Which system is authoritative for inventory? How long are customer records retained? What happens when a vendor suffers an outage? Ethical practice also requires accessible interfaces, truthful product claims, understandable consent, non-discriminatory personalization and responsible use of customer data.
6. Build-versus-Buy Decisions
“Build” means developing and controlling a capability internally; “buy” means acquiring it as a product or service. A third option is to configure or extend a purchased platform. The decision should evaluate strategic differentiation, time, total cost of ownership, risk, control, capability and reversibility.
A useful assessment is a weighted decision matrix. Let the score for option j be:
Sj = ∑(wi × rij), where ∑wi = 1
Here, w_i is the weight assigned to criterion i, r_{ij} is the rating of option j on criterion i, and S_j is the weighted score. Ratings must use a stated scale, such as 1–5. The matrix supports structured discussion; it does not replace sensitivity analysis or professional judgment.
Criterion
Weight
Buy rating
Build rating
Strategic differentiation
0.30
2
5
Speed to launch
0.20
5
2
Five-year cost
0.20
4
2
Internal capability
0.15
4
2
Control and flexibility
0.15
3
5
Weighted score
1.00
3.55
3.35
The ratings show why a nuanced answer is needed. Buying wins this illustrative matrix narrowly because speed, cost and capability offset lower differentiation. A venture might buy payments, hosting and basic commerce while building its unique recommendation or fulfilment logic. This is often called a hybrid strategy.
Total cost of ownership includes licence or subscription charges, implementation, integration, customization, internal staff, support, security, migration, downtime and eventual replacement. Entrepreneurs should also assess vendor lock-in, export formats, API limits, service-level commitments, audit rights and the provider’s financial stability.
7. Applied Case: GreenBasket Direct
The following is an illustrative case. GreenBasket Direct is a fictional start-up selling locally sourced household products. Its founders initially use a SaaS commerce platform with a standard theme, a payment gateway and a courier connector. The arrangement launches in six weeks, but growth creates problems: stock shown online is inaccurate, wholesale and retail prices are mixed, the product catalogue contains inconsistent measurements, and the mobile experience is slow because large images are delivered without optimization.
Analysis
The business does not yet need a fully composable platform. Its main problems are data governance and integration quality, not lack of front-end originality. The founders map systems of record: the PIM becomes authoritative for product attributes, the commerce platform for retail orders, and the inventory service for available stock. They introduce unique product and variant identifiers, approval workflows and a scheduled reconciliation report.
Approach
GreenBasket retains the SaaS commerce core, adds a managed PIM, uses a content delivery network for static assets, compresses images, enables multi-factor authentication and replaces a fragile inventory plug-in with a documented API integration. Webhook processing is made idempotent, and failed events enter a monitored queue for review. The firm postpones headless development until a clear multi-channel requirement emerges.
Outcome
The architecture becomes more reliable without imposing the cost of rebuilding checkout. Staff can update product data consistently, customers see more accurate availability, and the technical team gains visibility into failed integrations. The business preserves the option to add a mobile application later through APIs.
Learning points
Architecture should solve the most consequential business constraint first.
Data ownership is as important as software selection.
A managed platform can be strategically appropriate even for a growing firm.
Modularity is valuable when it is supported by operational capability.
Migration and exit options should be considered before dependence becomes costly.
8. Contemporary Developments and Best Practices
Modern commerce increasingly uses event-driven integration, edge delivery, predictive search, real-time personalization, social and conversational interfaces, and automated content operations. AI may improve forecasting, support and merchandising, but models require representative data, monitoring, human escalation and clear accountability. Generated outputs should not be treated as authoritative merely because they sound confident.
Practical best practices include:
Begin with customer journeys and business capabilities, not a fashionable product category.
Keep an architecture inventory, data-flow map and dependency register.
Prefer documented, versioned interfaces over undocumented point-to-point connections.
Establish measurable service objectives for availability, latency, recovery and support.
Test backups by restoring them; a backup that cannot be restored is not a dependable recovery resource.
Use staging environments and automated tests for pricing, tax, inventory, checkout and refunds.
Minimize sensitive data and delegate payment-card handling to qualified providers where appropriate.
Monitor both technical measures and commercial outcomes, such as failed checkouts and stock discrepancies.
Plan for vendor exit, data portability and replacement of critical components.
Review accessibility, privacy, security and ethical impacts throughout the product lifecycle.
Challenges and Limitations
There is no universally superior architecture. SaaS can constrain innovation but reduce operational risk; open source can increase control but expose a small firm to maintenance burdens; headless systems can improve experience but increase integration work; composable systems can avoid suite limitations but create a distributed failure surface. Cloud costs may become unpredictable, APIs may change, and data synchronization may be imperfect. Architectural decisions are therefore hypotheses that should be tested against evidence, service performance and business results.
Chapter Summary
E-commerce architecture connects customer experiences with commerce functions, content, data, integrations and infrastructure. Hosted and SaaS solutions favor speed and managed operations; open source offers control at the cost of responsibility. Headless separates presentation from commerce services, while composable commerce assembles specialized capabilities through APIs. Domains and TLS establish access and protected communication; cloud services provide varying levels of operational abstraction; databases preserve and serve business data; CMS, PIM and DAM support content and catalogue governance. APIs, webhooks and idempotent processing are essential to reliable integrations. Cybersecurity, privacy, accessibility and ethical data use are core management responsibilities. Build-versus-buy decisions should consider differentiation, total cost, capability, risk, control and reversibility. The best architecture is proportionate to the venture’s strategy and ability to operate it.
Key Terms
Domain: A human-readable address for an internet service.
DNS: The system that maps domain names to network destinations.
SaaS: Software delivered and managed as an online service.
Open source: Software distributed under a licence that provides defined access to source code and reuse rights.
Headless commerce: Architecture separating the customer-facing front end from commerce back-end services.
Composable commerce: An architecture assembled from specialized, replaceable commerce components.
API: A defined interface through which software exchanges data or invokes functions.
Webhook: An event notification sent from one system to another.
Idempotency: The property that repeating an operation does not create unintended additional effects.
Cloud computing: On-demand delivery of computing resources and services over a network.
Database: An organized system for storing and retrieving data.
System of record: The authoritative source for a particular data domain.
CMS: Software for managing editorial and web content.
PIM: Software for managing structured product information.
DAM: Software for managing digital media assets.
TLS: A protocol that encrypts and authenticates network communication.
Availability: The proportion of a defined period during which a service is operational.
Total cost of ownership: The complete cost of acquiring, operating, maintaining and replacing a solution.
Vendor lock-in: Difficulty or cost involved in moving away from a provider.
Least privilege: Giving users and systems only the access necessary for their roles.
Review Questions
Short Answer Questions
What is the difference between SaaS commerce and open-source commerce?
Why is a system of record important in e-commerce architecture?
Distinguish an API from a webhook.
What does idempotency mean in an integration?
Name three controls that support e-commerce cybersecurity.
Long Answer Questions
Compare hosted, SaaS, open-source, headless and composable commerce models, including their strengths and limitations.
Explain how domains, cloud services, databases, CMS, PIM and APIs work together in a commerce system.
Discuss privacy, payment security and ethical responsibilities in digital entrepreneurship.
Explain how an entrepreneur should conduct a build-versus-buy analysis.
Evaluate the claim that composable commerce is always superior to a SaaS platform.
Analytical / Application Questions
A start-up has limited technical staff, a standard product range and a six-week launch deadline. Recommend an architecture and justify your choice.
A retailer reports that customers can pay successfully, but some orders are not reaching the warehouse. Diagnose possible architectural causes and propose controls.
Using the weighted decision-matrix method, design criteria for deciding whether a distinctive recommendation engine should be built internally or purchased.
Multiple Choice Questions with Answers
Question 1
Which statement best describes headless commerce?
A. A commerce system with no customer-facing interface
B. A system in which the front end is separated from commerce back-end services
C. A system that can only be hosted on local servers
D. A system that does not use APIs
Correct Answer: B. A system in which the front end is separated from commerce back-end services
Question 2
What is the primary purpose of DNS?
A. To encrypt payment data
B. To store product images
C. To map domain names to network destinations
D. To authorize refunds
Correct Answer: C. To map domain names to network destinations
Question 3
Which component is normally the authoritative source for structured product attributes and variants?
A. PIM
B. Payment gateway
C. CDN
D. Firewall
Correct Answer: A. PIM
Question 4
Which property helps prevent a repeated payment request from creating an unintended duplicate effect?
A. Caching
B. Idempotency
C. Compression
D. Localization
Correct Answer: B. Idempotency
Question 5
Which statement about open-source commerce is most accurate?
A. It has no operating or maintenance costs
B. It prevents any customization
C. It may provide control but requires responsibility for maintenance and security
D. It cannot be hosted by a managed provider
Correct Answer: C. It may provide control but requires responsibility for maintenance and security
Question 6
A service has 43,190 minutes of uptime and 10 minutes of downtime. Its availability is approximately:
A. 90.0%
B. 97.7%
C. 99.977%
D. 100.23%
Correct Answer: C. 99.977%
Question 7
Which practice best supports recovery from a serious system failure?
A. Increasing image resolution
B. Testing restoration from backups
C. Removing all system logs
D. Using one administrator password
Correct Answer: B. Testing restoration from backups
Question 8
What is a webhook?
A. A scheduled database backup
B. An event notification sent between systems
C. A domain-registration record
D. A product classification method
Correct Answer: B. An event notification sent between systems
Question 9
Which factor is most relevant when assessing vendor lock-in?
A. The colour of the website theme
B. The difficulty and cost of migrating away from the provider
C. The number of product photographs
D. The length of a product description
Correct Answer: B. The difficulty and cost of migrating away from the provider
Question 10
Why might a small venture choose a hybrid build-versus-buy strategy?
A. To avoid evaluating costs
B. To buy all systems and build nothing
C. To purchase standard capabilities while building strategically differentiating functions
D. To eliminate the need for integration
Correct Answer: C. To purchase standard capabilities while building strategically differentiating functions
E-Commerce & Digital Entrepreneurship
Chapter 5
of 15