yashikalodh

All projects

Dynamic Pricing Engine

A pricing engine that forecasts demand and keeps prices in sync across a brand's sales channels.

Backend system2026Java, Spring Boot, Hibernate, H2, JUnit, Shopify GraphQL
Dynamic Pricing Engine screenshot

Overview

Direct-to-consumer brands often sell on Shopify, their own website and social commerce at once, and keep prices up to date by hand. This engine forecasts demand for each product, picks a pricing strategy to match, and pushes the new price to every channel, with an audit log of every change.

It was a four-person team project for CSYE 6300 at Northeastern, built around the Gang of Four design patterns.

What it does

  • Demand forecasting: compares short- and long-term moving averages of sales to call each product's demand rising, stable or falling.
  • Strategy selection: picks cost-plus, competitor-aware or inventory-aging pricing based on that trend.
  • Brand guardrails: clamps every suggested price between a minimum and maximum, so a strategy can't undercut the brand's positioning.
  • Channel sync: publishes each price to Shopify, the brand's own website and social commerce together.
  • Undo and audit: every price change can be undone and redone, and each one is recorded in an audit log.
  • Automatic repricing: reprices when stock levels change, and on a timer.
  • Dashboard: a live page for inventory, pricing, guardrails, price history, forecasts and the audit log.

How it's built

  • Backend: Java 21 and Spring Boot 3.3, with a REST API for inventory, pricing, demand and audit data.
  • Data: Hibernate and JPA over a file-backed H2 database, so stock levels survive a restart.
  • Shopify: the Admin GraphQL API, with a mock stand-in so the project runs and tests without store credentials.
  • Design patterns: Singleton, Strategy, Factory Method, Command, Decorator, Observer, Adapter and Template Method.
  • Testing: 46 JUnit 5 and Spring Boot tests.

My part

  • Wrote the three pricing strategies and the factory that creates each sales channel.
  • Added the own-website and social-commerce channels.
  • Built the brand-positioning guardrails that keep every price within its minimum and maximum.

Next project

EchoMates