DiscountsLife — Deals & Coupon Portal
Affiliate-Tracked Deal Aggregation with Automated SEO
High-volume deal aggregator and verified coupon code portal with automated deal indexing, affiliate tracking, category filtering, and newsletter subscriptions. Ingests deal feeds from multiple affiliate networks and keeps coupon validity trustworthy at scale.
Architecture & System Design
A feed normalization pipeline ingests deals from multiple affiliate networks through merchant-specific adapters, deduplicating before indexing. Scheduled jobs continuously re-validate coupon codes, and category/merchant pages are generated programmatically for SEO.
- Feed normalization pipeline with merchant-specific adapters and dedup hashing
- Scheduled coupon validation jobs that auto-flag and deactivate expired codes
- Cloaked, tracked affiliate link redirection with click analytics
- Template-driven programmatic SEO pages per merchant/category combination
Engineering Challenges
Aggregating Deals From Inconsistent Feeds
Deal feeds from different affiliate networks arrived in inconsistent formats and frequently overlapped, producing duplicate listings.
Built a normalization pipeline with per-merchant feed adapters and content-hash-based deduplication before indexing.
Duplicate listings reduced by roughly 90%.
Expired Coupon Codes Hurting Trust
Stale coupon codes eroded user trust and drove people away from the portal after failed redemptions.
Implemented scheduled validation jobs that periodically re-test each code against merchant validation endpoints and auto-deactivate failures.
Coupon validity rate maintained at 94% across the active catalog.
Scaling Programmatic SEO Without Duplicate Content
Generating a page per merchant/category combination risked search engine penalties for thin or duplicate content.
Built template-driven page generation that composes unique content blocks per merchant and category combination.
Organic sessions grew to over 120K per month without ranking penalties.
Core Features
Deal Feed Aggregation
Merchant-specific adapters normalizing and deduplicating deals from multiple affiliate feeds.
Clean Code
1<?php23namespace App\Jobs;45use App\Models\Coupon;6use Illuminate\Support\Facades\Http;7use Illuminate\Bus\Queueable;8use Illuminate\Contracts\Queue\ShouldQueue;910class ValidateCouponJob implements ShouldQueue11{12 use Queueable;1314 public function __construct(private Coupon $coupon) {}1516 public function handle(): void17 {18 $response = Http::timeout(5)->get(19 $this->coupon->merchant->validation_endpoint,20 ['code' => $this->coupon->code]21 );2223 $this->coupon->update([24 'is_valid' => $response->ok() && $response->json('valid'),25 'last_checked_at' => now(),26 ]);27 }28}