TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Building a scalable e-commerce data model

129 pointsby robricover 4 years ago

9 comments

s_severusover 4 years ago
This article, whilst quite clearly an advertisement (&quot;this is so complex - use our service!&quot;), actually does a decent job of illustrating just a <i>tiny fraction</i> of the complexity of correctly modelling an e-commerce system.<p>For the past 2 years I&#x27;ve been working full-time on an open-source headless e-commerce framework (<a href="https:&#x2F;&#x2F;www.vendure.io&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.vendure.io&#x2F;</a>) so I can attest to this.<p>Small illustrative example: I have spent the past 2 weeks re-working our tax handling to handle scenarios like this:<p>- An order contains 5 products, some of which have different tax rates. Order total is $100. - A $10 coupon code reduces the order to $90. - The order is completed and shipped. Later on the customer wants to return and get a refund on one of the items. How much do you refund?<p>The answer is that you need to prorate (distribute) the $10 discount proportionally over the 5 items, so that when refunding, this order-wide discount is taken into account.<p>After extensive research (much of which I wrote up here: <a href="https:&#x2F;&#x2F;github.com&#x2F;vendure-ecommerce&#x2F;vendure&#x2F;issues&#x2F;573" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;vendure-ecommerce&#x2F;vendure&#x2F;issues&#x2F;573</a>), I was rather surprised to find that the majority of well-known OSS e-commerce frameworks don&#x27;t handle this properly.<p>On top of the things mentioned there are a whole host of other major topics of concern, e.g.<p>* stock control &amp; tracking<p>* fulfillment &amp; shipping integration<p>* payment integration<p>* promotions<p>* account management (email verification, password resets etc)<p>* product images &#x2F; asset management<p>* multiple sales channel, multi-currency, multi-language support<p>For those interested, my project is approaching v1.0 so I&#x27;ve just about got a handle on all of the above. Phew!
评论 #25358318 未加载
评论 #25358514 未加载
评论 #25359979 未加载
jamestimminsover 4 years ago
I really enjoy this type of article that shares a data model for a common type of project. I&#x27;d love to see more examples for different common project types.
评论 #25357442 未加载
stevesimmonsover 4 years ago
This is great, and worth comparing with, for instance, the Magento data models [1] (from Anna Volkl).<p>Echoing the comment from rafaelturk about NoSQL, I&#x27;d love to see more info on how various industry verticals use DynamoDB as their primary store.<p>[1] <a href="https:&#x2F;&#x2F;anna.voelkl.at&#x2F;wp-content&#x2F;uploads&#x2F;2016&#x2F;12&#x2F;ce2.1.3.png" rel="nofollow">https:&#x2F;&#x2F;anna.voelkl.at&#x2F;wp-content&#x2F;uploads&#x2F;2016&#x2F;12&#x2F;ce2.1.3.pn...</a>
评论 #25360064 未加载
huyover 4 years ago
For those who&#x27;re curious, the tool to build the database diagrams is dbdiagram.io
revskillover 4 years ago
Where&#x27;s the inventory management ? If i make a sale order, where to substract from inventory count ?
评论 #25360111 未加载
评论 #25357934 未加载
lovetocodeover 4 years ago
This is clearly an advertisement.
评论 #25358309 未加载
tmikaeldover 4 years ago
While Fabric is certainly cool and I&#x27;d love to dig into it, not having any inclination of the pricing makes it impossible to know which client-base they are after.<p>I&#x27;m guessing those that have grown out of Magento&#x2F;WooCommerce or even Shopify and Ecwid. Which means enterprise pricing, ie. custom quotes.
评论 #25360274 未加载
pbourkeover 4 years ago
The OMS is a pretty crucial part of an e-commerce system. I’d outsource a great many other things before that.
rafaelturkover 4 years ago
If I ever venture into creating my own eCommerce platform I&#x27;d probably use NoSQL
评论 #25354842 未加载
评论 #25354645 未加载
评论 #25354621 未加载
评论 #25355245 未加载