Chuyển tới nội dung chính

Kiến Trúc Business OS

MCV Business OS gom các sản phẩm của MCV vào một portal thống nhất tại app.mcv.network, trong khi các domain sản phẩm vẫn giữ vai trò marketing, SEO và lead generation.

Bản Đồ Domain

DomainVai trò
mcv.networkCorporate, investor profile, SEO, About, roadmap
app.mcv.networkUnified Business OS portal
docs.mcv.networkDocumentation và runbook
api.mcv.networkAPI gateway, webhook, partner integrations
status.mcv.networkUptime, incident và service health
matchingvietnam.comMarket Access product site
zenify.cxWordPress marketing site cho AI CRM
web.zenify.cxZenify CRM product app cho khách hàng
vinecom.netAgentic AI product site

Phase 1 Scope

Phase 1 tập trung vào nền móng dữ liệu và vận hành:

  • Chuẩn hóa app.mcv.network thành portal thống nhất thay cho app.mcv.network.
  • Tạo lớp dữ liệu Market Access trong Laravel core.
  • Đồng bộ supplier, product, category và inquiry từ MatchingVietnam.
  • Giữ MatchingVietnam như source system, không trộn Botble CMS vào core portal.
  • Cập nhật docs để mọi thay đổi kiến trúc có lịch sử rõ ràng.

Phase 2 Scope

Phase 2 chuyển MatchingVietnam thành public storefront + SEO:

  • Vendor/customer dashboard trên MatchingVietnam handoff sang app.mcv.network.
  • SSO dùng signed payload HMAC, TTL ngắn, không chia sẻ password giữa hai hệ thống.
  • MatchingVietnam tiếp tục giữ catalog/product/storefront và SEO traffic.
  • Business OS trở thành nơi quản trị tài khoản, ví, marketplace, affiliate, service và vận hành seller.

Phase 3 Scope

Phase 3 hoàn thiện Billing OS cho hợp đồng dịch vụ/subscription:

  • Admin tạo hợp đồng B2B, setup fee, lịch thu định kỳ và billing email.
  • Business OS sinh từng billing cycle với ageing, reminder count và trạng thái paid/due/overdue.
  • Khách hàng tạo QR Pay cho từng kỳ dịch vụ bằng InfoCMS.
  • Admin có dashboard công nợ, lọc/search, tạo QR, gửi reminder thủ công và đánh dấu đã thu.
  • Automation gửi reminder theo mốc 7 ngày trước hạn, đúng hạn, quá hạn 3/7/15 ngày.
  • Callback InfoCMS tự đánh dấu billing cycle paid và gửi email xác nhận cho khách hàng/admin.

Phase 4 Scope

Phase 4 chuẩn hóa Publisher, Vendor và Agency thành một workspace Seller thống nhất:

  • Một Account có thể vừa mua vừa bán, không bị khóa bởi role cứng.
  • Quyền bán được mô hình hóa bằng capability: can_sell_products, can_sell_inventory, can_sell_services, can_manage_storefronts.
  • MatchingVietnam tiếp tục là storefront public + SEO cho Market Access, nhưng module sản phẩm được dùng như catalog gốc cho Business OS.
  • Seller có thể đăng bán sản phẩm vật lý, sản phẩm phi vật lý, dịch vụ, media inventory, affiliate offer và quản lý đơn hàng từ app.mcv.network.
  • Business OS giữ ví, escrow, compliance, billing, notification và báo cáo vận hành.

Storefront Strategy

StorefrontDùng choRuntime
MCV marketplace storefrontListing trực tiếp trong app và marketplace chungLaravel Business OS
MatchingVietnam storefrontSản phẩm Market Access, SEO và lead xuất khẩuBotble Laravel
WordPress domain riêngLanding page/SEO/brand site riêng cho SellerWordPress managed site

Website WordPress domain riêng lấy pattern từ pkthientam.com: hero có CTA rõ, trust metrics, logo/proof strip, section giới thiệu, danh mục dịch vụ/sản phẩm, lý do tin tưởng, đội ngũ/case proof, testimonial, form lead và footer đầy đủ. WordPress chỉ phục vụ content/SEO/conversion; đơn hàng, ví, thanh toán, compliance và billing vẫn quay về Business OS.

Zenify As Merchant

Zenify được mô hình hóa như một merchant trong MCV Business OS:

  • zenify.cx làm marketing/SEO và điều hướng khách vào CRM.
  • web.zenify.cx xử lý trải nghiệm CRM, workspace và trial/signup.
  • Mỗi signup từ Zenify gọi webhook POST /integrations/zenify/signups về Business OS bằng HMAC.
  • Business OS tạo hoặc cập nhật User, customer Account, Zenify merchant account và ServiceContract.
  • Billing, reminder, QR Pay, profile và quyền truy cập dài hạn được quản trị tại app.mcv.network.

Chi tiết triển khai nằm ở trang Zenify Merchant OS.

Kiến Trúc Ưu Tiên PHP/Laravel

flowchart LR
MCV["mcv.network<br/>Corporate + SEO"]
App["app.mcv.network<br/>Laravel Business OS"]
API["api.mcv.network<br/>API Gateway"]
Docs["docs.mcv.network<br/>Docusaurus"]
Status["status.mcv.network<br/>Status Page"]
Matching["matchingvietnam.com<br/>Botble Laravel"]
Zenify["zenify.cx<br/>WordPress Marketing"]
ZenifyApp["web.zenify.cx<br/>CRM App"]
ZenifyMerchant["Zenify merchant account<br/>Billing + entitlement"]
Vinecom["vinecom.net<br/>Agentic AI Product Site"]

MCV --> App
Matching --> App
Zenify --> App
ZenifyApp --> App
ZenifyApp --> ZenifyMerchant
ZenifyMerchant --> App
Vinecom --> App
App --> API
API --> App
App --> Docs
API --> Status
App --> Status

Data Store

Production Business OS dùng PostgreSQL làm database chính cho app.mcv.network.

  • SQLite chỉ dùng cho local development hoặc backup lịch sử trước migration.
  • PostgreSQL là nguồn dữ liệu production cho user, account, wallet, billing, marketplace, affiliate, subscription và integration mapping.
  • Các workflow có ghi tiền hoặc callback ngân hàng phải chạy trên PostgreSQL để tránh lỗi file permission, write lock và giới hạn concurrent write của SQLite.
  • Backup production cần ưu tiên pg_dump/database snapshot; không còn dựa vào copy database.sqlite.

Microservices Direction

Laravel vẫn là ưu tiên chính, nhưng tách module theo boundary rõ ràng để có thể nâng cấp thành microservices khi tải tăng:

Service BoundaryPhase 1Future Split
Identity & AccountLaravel moduleAuth service
Wallet & BillingLaravel moduleLedger/payment service
Seller CommerceLaravel module + MatchingVietnam adapterCatalog/order service
MarketplaceLaravel moduleMarketplace service
AffiliateLaravel moduleTracking/conversion service
Market AccessLaravel module + sync adapterCatalog/lead service
NotificationLaravel mail serviceEmail/SMS event service
API GatewayLaravel routes/proxyDedicated gateway

Nguyên tắc: tách bằng database table, service class, command và API contract trước; chỉ tách runtime/deploy sau khi có nhu cầu thật.

English Summary

MCV Business OS uses app.mcv.network as the unified Laravel portal, while product domains remain focused on marketing and acquisition. zenify.cx is the WordPress marketing surface, while web.zenify.cx remains the CRM product app and connects back to Business OS for SSO, customer master data, subscription and billing entitlement. Phase 1 creates the Market Access data layer, Phase 2 connects MatchingVietnam through SSO, Phase 3 turns service contracts and recurring billing into an operational Billing OS, and Phase 4 unifies Publisher, Vendor, and Agency into Seller Commerce with Laravel, MatchingVietnam, and WordPress storefront options.