You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: monolithic-architecture/README.md
+14Lines changed: 14 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,3 +1,17 @@
1
+
---
2
+
title: "Monolithic Ecommerce App: A Cohesive Application Model"
3
+
shortTitle: Monolithic Ecommerce
4
+
description: "Explore the Monolithic Ecommerce application structure, its design intent, benefits, limitations, and real-world applications. Understand its simplicity and practical use cases."
5
+
category: Architectural
6
+
language: en
7
+
tag:
8
+
- Cohesion
9
+
- Simplicity
10
+
- Scalability
11
+
- Deployment
12
+
- Maintainability
13
+
---
14
+
1
15
## Monolithic-Ecommerce App
2
16
* A Monolithic Ecommerce example to showcase Monolithic Architecture
finalUseruser = userRepository.findById(userId).orElseThrow(() -> newNonExistentUserException("User with ID " + userId + " not found"));
57
57
58
-
finalProductsproduct = productRepository.findById(productId).orElseThrow(() -> newNonExistentProductException("Product with ID " + productId + " not found"));
58
+
finalProductproduct = productRepository.findById(productId).orElseThrow(() -> newNonExistentProductException("Product with ID " + productId + " not found"));
59
59
60
60
if (product.getStock() < quantity) {
61
61
thrownewInsufficientStockException("Not enough stock for product " + productId);
@@ -64,7 +64,7 @@ public Orders placeOrder(Long userId, Long productId, Integer quantity) {
0 commit comments