Frontend System Design Essentials: Reordering Lists at Scale (Without Breaking Everything)

I Code It
1,760 views β€’

πŸ‘‰ Frontend System Design Essentials β€” Course (Now Available): https://icodeit.thinkific.com/courses/frontend-system-design-essentials πŸ‘‰ Frontend System Design Essentials β€” Book: https://leanpub.com/frontend-system-design-essentials/ Drag-and-drop ordering looks simple in the UI. But once you try to persist that order in a real system, an interesting system design problem appears. If you store positions as 1, 2, 3, 4, 5, inserting an item near the top of a long list may require updating thousands of rows in the database. That works for small lists β€” but in large systems it quickly becomes expensive. In this episode of Frontend System Design Essentials, we explore how real systems solve this problem using lexicographic ranking, often known as LexoRank. πŸ“˜ MY BOOKS & COURSES πŸ‘‰ Frontend System Design Essentials (Course): https://icodeit.thinkific.com/courses/frontend-system-design-essentials πŸ‘‰ Frontend System Design Essentials (Book): https://leanpub.com/frontend-system-design-essentials/ πŸ‘‰ React Anti-Patterns (Amazon): https://www.amazon.com/dp/1805123971 πŸ‘‰ More Tutorials on Advanced Patterns: https://icodeit.com.au/tutorials/advanced-network-patterns-react πŸ“© STAY CONNECTED 🧠 Newsletter (system design & clean code): https://juntao.substack.com 🌐 Website & Blog: https://icodeit.com.au 🐦 Twitter / X: http://twitter.com/JuntaoQiu πŸ“Ί YouTube (subscribe): https://www.youtube.com/@icodeit.juntao πŸ’¬ Question for You If you were designing a drag-and-drop list system, how would you store the ordering? Would you use sequential numbers, sparse indexing, or something like LexoRank? Have you ever had to rebalance list positions in a real production system? #frontend #systemdesign #reactjs #draganddrop #lexorank #webdevelopment #softwarearchitecture

Keyboard shortcuts

On. Switch them off if they collide with your assistive tools; ? still opens this sheet.

Go to

Press g then the letter.

  • gh Latest
  • gs Sources
  • gm Media
  • gv Videos
  • gp Podcasts
  • gc Calendar
  • gd Decoder
  • gz Dataviz
  • ga Datasets
  • gb Blog
  • gk Markets
  • gj Careers
  • gn Prompt Notebook

On this page

  • / Focus search, where there is one
  • t Back to top
  • ? This list
  • Esc Close