{"id":6146,"date":"2026-03-30T13:00:00","date_gmt":"2026-03-30T08:00:00","guid":{"rendered":"https:\/\/zilleali.com\/nexalink-multi-tenant-architecture\/"},"modified":"2026-11-25T16:07:46","modified_gmt":"2026-11-25T11:07:46","slug":"nexalink-multi-tenant-architecture","status":"publish","type":"post","link":"https:\/\/zilleali.com\/ar\/nexalink-multi-tenant-architecture\/","title":{"rendered":"\u062a\u0635\u0645\u064a\u0645 SaaS \u0644\u0645\u0632\u0648\u062f \u062e\u062f\u0645\u0629 \u0625\u0646\u062a\u0631\u0646\u062a \u0645\u062a\u0639\u062f\u062f \u0627\u0644\u0645\u0633\u062a\u0623\u062c\u0631\u064a\u0646: \u062f\u0631\u0648\u0633 \u0645\u0646 NexaLink"},"content":{"rendered":"<p>\u0625\u0646 \u0627\u0644\u062d\u0635\u0648\u0644 \u0639\u0644\u0649 \u0628\u0646\u064a\u0629 NexaLink ISP SaaS \u0635\u062d\u064a\u062d\u0629 \u064a\u0628\u062f\u0623 \u0628\u0642\u0631\u0627\u0631 \u0648\u0627\u062d\u062f: \u0643\u064a\u0641\u064a\u0629 \u0639\u0632\u0644 \u0627\u0644\u0645\u0633\u062a\u0623\u062c\u0631\u064a\u0646.<\/p>\n<p>NexaLink \u0647\u064a \u0645\u0646\u0635\u0629 \u0625\u062f\u0627\u0631\u0629 \u0645\u0632\u0648\u062f \u062e\u062f\u0645\u0629 \u0625\u0646\u062a\u0631\u0646\u062a: \u0627\u0644\u0645\u0634\u062a\u0631\u0643\u064a\u0646\u060c \u0627\u0644\u062e\u0637\u0637\u060c \u0627\u0644\u0641\u0648\u0627\u062a\u064a\u0631\u060c \u0627\u0644\u0642\u0633\u0627\u0626\u0645\u060c \u0648\u0623\u062a\u0645\u062a\u0629 RouterOS \u0644\u0644\u0645\u0634\u063a\u0644\u064a\u0646 \u0627\u0644\u0635\u063a\u0627\u0631 \u0627\u0644\u0630\u064a\u0646 \u0644\u0627 \u064a\u0645\u0643\u0646\u0647\u0645 \u062a\u0628\u0631\u064a\u0631 \u0646\u0638\u0627\u0645 OSS \u0645\u0646 \u0641\u0626\u0629 \u0627\u0644\u0646\u0627\u0642\u0644. \u0643\u0627\u0646 \u062a\u0639\u062f\u062f \u0627\u0644\u0645\u0633\u062a\u0623\u062c\u0631\u064a\u0646 \u0647\u0648 \u0627\u0644\u0642\u0631\u0627\u0631 \u0627\u0644\u0645\u0639\u0645\u0627\u0631\u064a \u0627\u0644\u0623\u0648\u0644 \u0648\u0647\u0648 \u0645\u0627 \u0648\u0631\u062b\u0647 \u0643\u0644 \u0634\u064a\u0621 \u0622\u062e\u0631.<\/p>\n<h2 id=\"nexalink-isp-saas-architecture-the-two-options\">\u0628\u0646\u064a\u0629 NexaLink ISP SaaS: \u0627\u0644\u062e\u064a\u0627\u0631\u0627\u0646<\/h2>\n<p><strong>\u0645\u062e\u0637\u0637 \u0644\u0643\u0644 \u0645\u0633\u062a\u0623\u062c\u0631.<\/strong> \u0642\u0627\u0639\u062f\u0629 \u0628\u064a\u0627\u0646\u0627\u062a \u0648\u0627\u062d\u062f\u0629\u060c \u0645\u062e\u0637\u0637 PostgreSQL \u0648\u0627\u062d\u062f \u0644\u0643\u0644 \u0645\u0632\u0648\u062f \u062e\u062f\u0645\u0629 \u0625\u0646\u062a\u0631\u0646\u062a. \u0639\u0632\u0644 \u0642\u0648\u064a\u060c \u0627\u0633\u062a\u0639\u0627\u062f\u0629 \u0633\u0647\u0644\u0629 \u0644\u0643\u0644 \u0645\u0633\u062a\u0623\u062c\u0631\u060c \u0648\u0646\u0645\u0648\u0630\u062c \u0630\u0647\u0646\u064a \u0645\u064f\u0631\u0636\u064d.<\/p>\n<p><strong>\u0645\u0633\u062a\u0648\u0649 \u0627\u0644\u0635\u0641.<\/strong> \u0645\u062c\u0645\u0648\u0639\u0629 \u062c\u062f\u0627\u0648\u0644 \u0645\u0634\u062a\u0631\u0643\u0629\u060c a <code>tenant_id<\/code> \u0639\u0644\u0649 \u0643\u0644 \u0635\u0641\u060c \u0645\u0641\u0631\u0648\u0636 \u0639\u0627\u0644\u0645\u064a\u0627\u064b.<\/p>\n<p>\u062a\u0642\u062f\u0645 NexaLink \u0628\u0646\u064a\u0629 \u0645\u0633\u062a\u0648\u0649 \u0627\u0644\u0635\u0641. \u0627\u0644\u0639\u0627\u0645\u0644 \u0627\u0644\u062d\u0627\u0633\u0645 \u0644\u0645 \u064a\u0643\u0646 \u0627\u0644\u0623\u062f\u0627\u0621 \u2014 \u0628\u0644 \u0627\u0644\u0639\u0645\u0644\u064a\u0627\u062a. \u0645\u0639 200 \u0645\u0633\u062a\u0623\u062c\u0631\u060c \u064a\u0639\u0646\u064a \u0645\u062e\u0637\u0637 \u0644\u0643\u0644 \u0645\u0633\u062a\u0623\u062c\u0631 200 \u0639\u0645\u0644\u064a\u0629 \u062a\u0631\u062d\u064a\u0644 \u0645\u062e\u0637\u0637 \u0644\u0643\u0644 \u0625\u0635\u062f\u0627\u0631\u060c 200 \u0645\u062c\u0645\u0648\u0639\u0629 \u0645\u0646 \u0623\u062d\u0648\u0627\u0636 \u0627\u0644\u0627\u062a\u0635\u0627\u0644\u060c \u0648\u0641\u0634\u0644 \u062a\u0631\u062d\u064a\u0644 \u0641\u064a \u0627\u0644\u0645\u0633\u062a\u0623\u062c\u0631 147 \u064a\u062a\u0631\u0643 \u0627\u0644\u0623\u0633\u0637\u0648\u0644 \u0641\u064a \u062d\u0627\u0644\u0627\u062a \u0645\u062e\u062a\u0644\u0637\u0629. \u064a\u062c\u0639\u0644 \u0645\u0633\u062a\u0648\u0649 \u0627\u0644\u0635\u0641 \u0627\u0644\u0625\u0635\u062f\u0627\u0631 \u062a\u0631\u062d\u064a\u0644\u0629 \u0648\u0627\u062d\u062f\u0629 \u0648\u0645\u0633\u0627\u0631 \u0631\u062c\u0648\u0639 \u0648\u0627\u062d\u062f.<\/p>\n<p>\u062d\u064a\u062b \u064a\u0628\u0631\u0632 \u0645\u062e\u0637\u0637 \u0644\u0643\u0644 \u0645\u0633\u062a\u0623\u062c\u0631: \u0639\u062f\u062f \u0642\u0644\u064a\u0644 \u0645\u0646 \u0627\u0644\u0645\u0633\u062a\u0623\u062c\u0631\u064a\u0646 \u0627\u0644\u0643\u0628\u0627\u0631 \u0627\u0644\u0630\u064a\u0646 \u064a\u0637\u0644\u0628\u0648\u0646 \u0641\u0635\u0644\u064b\u0627 \u0645\u0627\u062f\u064a\u064b\u0627\u060c \u0623\u0648 \u062d\u0642\u0648\u0644 \u0645\u062e\u0635\u0635\u0629 \u0644\u0643\u0644 \u0645\u0633\u062a\u0623\u062c\u0631. \u0647\u0630\u0627 \u0644\u0645 \u064a\u0643\u0646 \u0627\u0644\u0639\u0645\u064a\u0644 \u0627\u0644\u0645\u0633\u062a\u0647\u062f\u0641.<\/p>\n<p><picture><source srcset=\"https:\/\/zilleali.com\/wp-content\/uploads\/2026\/11\/nexalink-multi-tenant-architecture-supporting-1.webp\" type=\"image\/webp\"><img decoding=\"async\" src=\"https:\/\/zilleali.com\/wp-content\/uploads\/2026\/11\/nexalink-multi-tenant-architecture-supporting-1.webp\" alt=\"NexaLink ISP SaaS architecture: row-level multi-tenant isolation with ISP operators, Laravel tenant middleware and PostgreSQL rows scoped by tenant_id\"><\/picture><\/p>\n<h2 id=\"making-row-level-safe\">\u062c\u0639\u0644 \u0645\u0633\u062a\u0648\u0649 \u0627\u0644\u0635\u0641 \u0622\u0645\u0646\u0627\u064b<\/h2>\n<p>\u0627\u0644\u062e\u0637\u0631 \u0645\u0639 <a href=\"https:\/\/www.postgresql.org\/docs\/current\/ddl-rowsecurity.html\">\u0639\u0632\u0644 \u0645\u0633\u062a\u0648\u0649 \u0627\u0644\u0635\u0641<\/a> \u0647\u0648 \u0646\u0633\u064a\u0627\u0646 <code>where tenant_id = ?<\/code>. \u062b\u0644\u0627\u062b \u0637\u0628\u0642\u0627\u062a \u062a\u0648\u0642\u0641\u0647:<\/p>\n<ol>\n<li><strong>\u0633\u064a\u0627\u0642 \u0627\u0644\u0645\u0633\u062a\u0623\u062c\u0631 \u0645\u0646 \u0627\u0644\u0637\u0628\u0642\u0629 \u0627\u0644\u0648\u0633\u064a\u0637\u0629.<\/strong> \u064a\u064f\u0633\u062a\u062e\u0644\u0635 \u0645\u0646 \u0627\u0644\u0645\u0633\u062a\u062e\u062f\u0645 \u0627\u0644\u0645\u0635\u0627\u062f\u0642 \u0639\u0644\u064a\u0647\u060c \u0648\u0644\u0627 \u0645\u0646 \u0645\u062f\u062e\u0644\u0627\u062a \u0627\u0644\u0645\u0633\u062a\u062e\u062f\u0645.<\/li>\n<li><strong>\u0646\u0637\u0627\u0642 \u0627\u0633\u062a\u0639\u0644\u0627\u0645 \u0639\u0627\u0644\u0645\u064a \u0639\u0644\u0649 \u0643\u0644 \u0646\u0645\u0648\u0630\u062c \u0645\u0645\u0644\u0648\u0643 \u0644\u0644\u0645\u0633\u062a\u0623\u062c\u0631<\/strong>, \u064a\u064f\u0637\u0628\u0642 \u0628\u0648\u0627\u0633\u0637\u0629 \u0641\u0626\u0629 \u0623\u0633\u0627\u0633\u064a\u0629 \u0628\u062d\u064a\u062b \u0644\u0627 \u064a\u0645\u0643\u0646 \u0644\u0646\u0645\u0648\u0630\u062c \u062c\u062f\u064a\u062f \u0627\u0644\u0627\u0646\u0633\u062d\u0627\u0628 \u0628\u0627\u0644\u0625\u063a\u0641\u0627\u0644.<\/li>\n<li><strong>\u0623\u0645\u0627\u0646 \u0645\u0633\u062a\u0648\u0649 \u0627\u0644\u0635\u0641 \u0641\u064a PostgreSQL<\/strong> \u0643\u0636\u0645\u0627\u0646 \u0625\u0636\u0627\u0641\u064a\u060c \u0628\u062d\u064a\u062b \u062d\u062a\u0649 \u0627\u0633\u062a\u0639\u0644\u0627\u0645 \u062e\u0627\u0645 \u0641\u064a \u0645\u0647\u0645\u0629 \u062e\u0644\u0641\u064a\u0629 \u0644\u0627 \u064a\u0645\u0643\u0646\u0647 \u0639\u0628\u0648\u0631 \u0627\u0644\u0645\u0633\u062a\u0623\u062c\u0631\u064a\u0646.<\/li>\n<\/ol>\n<p>\u062b\u0645 \u0645\u062c\u0645\u0648\u0639\u0629 \u0627\u0644\u0627\u062e\u062a\u0628\u0627\u0631\u0627\u062a: \u0643\u0644 \u0645\u0648\u0631\u062f \u0645\u0645\u0644\u0648\u0643 \u0644\u0644\u0645\u0633\u062a\u0623\u062c\u0631 \u0644\u062f\u064a\u0647 \u0627\u062e\u062a\u0628\u0627\u0631 \u064a\u064f\u0635\u0627\u062f\u0642 \u0643\u0627\u0644\u0645\u0633\u062a\u0623\u062c\u0631 A \u0648\u064a\u062a\u0623\u0643\u062f \u0623\u0646 \u0637\u0644\u0628 \u0633\u062c\u0644 \u0627\u0644\u0645\u0633\u062a\u0623\u062c\u0631 B \u064a\u064f\u0639\u064a\u062f 404\u060c \u0644\u0627 403. 403 \u064a\u0624\u0643\u062f \u0648\u062c\u0648\u062f \u0627\u0644\u0633\u062c\u0644 \u2014 \u0648\u0647\u0630\u0627 \u0646\u0641\u0633\u0647 \u062a\u0633\u0631\u064a\u0628 \u0635\u063a\u064a\u0631.<\/p>\n<h2 id=\"per-tenant-restore-in-a-row-level-model\">\u0627\u0633\u062a\u0639\u0627\u062f\u0629 \u0644\u0643\u0644 \u0645\u0633\u062a\u0623\u062c\u0631 \u0641\u064a \u0646\u0645\u0648\u0630\u062c \u0645\u0633\u062a\u0648\u0649 \u0627\u0644\u0635\u0641<\/h2>\n<p>\u0627\u0644\u0645\u0642\u0627\u064a\u0636\u0629 \u0627\u0644\u062d\u0642\u064a\u0642\u064a\u0629 \u0644\u062a\u0639\u062f\u062f \u0627\u0644\u0645\u0633\u062a\u0623\u062c\u0631\u064a\u0646 \u0639\u0644\u0649 \u0645\u0633\u062a\u0648\u0649 \u0627\u0644\u0635\u0641 \u0645\u0642\u0627\u0628\u0644 \u0645\u062e\u0637\u0637 \u0644\u0643\u0644 \u0645\u0633\u062a\u0623\u062c\u0631 \u062a\u0638\u0647\u0631 \u0639\u0646\u062f \u0648\u0642\u062a \u0627\u0644\u0627\u0633\u062a\u0639\u0627\u062f\u0629\u060c \u0644\u0627 \u0639\u0646\u062f \u0648\u0642\u062a \u0627\u0644\u062a\u0631\u062d\u064a\u0644. \u0646\u0633\u062e\u0629 \u0627\u062d\u062a\u064a\u0627\u0637\u064a\u0629 \u0643\u0627\u0645\u0644\u0629 \u0644\u0642\u0627\u0639\u062f\u0629 \u0627\u0644\u0628\u064a\u0627\u0646\u0627\u062a \u062a\u0633\u062a\u0639\u064a\u062f \u0627\u0644\u0645\u0646\u0635\u0629 \u0628\u0623\u0643\u0645\u0644\u0647\u0627 \u0646\u0638\u064a\u0641\u0629\u061b \u0627\u0633\u062a\u062e\u0631\u0627\u062c \u0628\u064a\u0627\u0646\u0627\u062a \u0645\u0633\u062a\u0623\u062c\u0631 \u0648\u0627\u062d\u062f \u0645\u0646 \u062a\u0644\u0643 \u0627\u0644\u0646\u0633\u062e\u0629 \u0628\u0639\u062f \u062e\u0637\u0623 \u0627\u0644\u0645\u0634\u063a\u0644 \u2014 \u062d\u0630\u0641 \u062c\u0645\u0627\u0639\u064a \u0633\u064a\u0626 \u0644\u0644\u0645\u0634\u062a\u0631\u0643\u064a\u0646\u060c \u0639\u0644\u0649 \u0633\u0628\u064a\u0644 \u0627\u0644\u0645\u062b\u0627\u0644 \u2014 \u064a\u0639\u0646\u064a \u0627\u0633\u062a\u0639\u0627\u062f\u0629 \u0627\u0646\u062a\u0642\u0627\u0626\u064a\u0629 \u0645\u064f\u062d\u062f\u062f\u0629 \u0639\u0644\u0649 <code>tenant_id<\/code> \u0639\u0628\u0631 \u0643\u0644 \u062c\u062f\u0648\u0644 \u0645\u062a\u0623\u062b\u0631\u060c \u0648\u0644\u064a\u0633 \u062a\u0628\u062f\u064a\u0644 \u0645\u062e\u0637\u0637 \u0648\u0627\u062d\u062f.<\/p>\n<p>\u0625\u062c\u0627\u0628\u0629 NexaLink \u0647\u064a \u062a\u0635\u062f\u064a\u0631 \u0645\u0646\u0637\u0642\u064a \u0645\u062c\u062f\u0648\u0644 \u0644\u0643\u0644 \u0645\u0633\u062a\u0623\u062c\u0631 (\u0639\u0627\u062f\u064a <code>pg_dump<\/code> \u0645\u064f\u0641\u0644\u062a\u0631 \u062d\u0633\u0628 \u0627\u0644\u0645\u0633\u062a\u0623\u062c\u0631\u060c \u0645\u0643\u062a\u0648\u0628 \u0633\u0643\u0631\u064a\u0628\u062a\u0627\u064b \u0628\u062f\u0644\u0627\u064b \u0645\u0646 \u0627\u0644\u0646\u0642\u0631) \u064a\u062c\u0644\u0633 \u062c\u0646\u0628 \u0627\u0644\u0646\u0633\u062e\u0629 \u0627\u0644\u0627\u062d\u062a\u064a\u0627\u0637\u064a\u0629 \u0627\u0644\u0641\u064a\u0632\u064a\u0627\u0626\u064a\u0629 \u0627\u0644\u0643\u0627\u0645\u0644\u0629 \u2014 \u0623\u0628\u0637\u0623 \u0641\u064a \u0627\u0644\u0625\u0646\u062a\u0627\u062c \u0645\u0646 \u0627\u0633\u062a\u0639\u0627\u062f\u0629 \u0645\u062e\u0637\u0637 \u0644\u0643\u0644 \u0645\u0633\u062a\u0623\u062c\u0631\u060c \u0644\u0643\u0646 \u064a\u0639\u0646\u064a \u0623\u0646 \u062d\u0627\u062f\u062b\u0629 \u0645\u0634\u063a\u0644 \u0648\u0627\u062d\u062f \u0644\u0627 \u062a\u062a\u0637\u0644\u0628 \u0627\u0633\u062a\u0639\u0627\u062f\u0629 \u062b\u0645 \u0625\u0639\u0627\u062f\u0629 \u062a\u0635\u062f\u064a\u0631 \u0627\u0644\u0628\u064a\u0627\u0646\u0627\u062a \u0644\u0643\u0644 \u0645\u0633\u062a\u0623\u062c\u0631 \u0622\u062e\u0631 \u0639\u0644\u0649 \u0627\u0644\u0645\u0646\u0635\u0629 \u0641\u0642\u0637 \u0644\u0639\u0632\u0644 \u0635\u0641\u0648\u0641 \u0645\u0633\u062a\u0623\u062c\u0631 \u0648\u0627\u062d\u062f \u0645\u0631\u0629 \u0623\u062e\u0631\u0649.<\/p>\n<h2 id=\"freeradius-in-a-shared-platform\">FreeRADIUS \u0641\u064a \u0645\u0646\u0635\u0629 \u0645\u0634\u062a\u0631\u0643\u0629<\/h2>\n<p>\u0643\u0627\u0646 \u0645\u062e\u0637\u0637 RADIUS \u0647\u0648 \u0627\u0644\u062c\u0632\u0621 \u0627\u0644\u0645\u062b\u064a\u0631 \u0644\u0644\u0627\u0647\u062a\u0645\u0627\u0645. \u0627\u0644\u0645\u0634\u062a\u0631\u0643\u0648\u0646 \u0645\u0646 \u0645\u0632\u0648\u062f\u064a \u062e\u062f\u0645\u0629 \u0625\u0646\u062a\u0631\u0646\u062a \u0645\u062e\u062a\u0644\u0641\u064a\u0646 \u064a\u0634\u0627\u0631\u0643\u0648\u0646 <code>radcheck<\/code> \u0648 <code>radacct<\/code>\u060c \u0648\u062a\u062a\u0635\u0627\u062f\u0645 \u0623\u0633\u0645\u0627\u0621 \u0627\u0644\u0645\u0633\u062a\u062e\u062f\u0645\u064a\u0646 \u2014 <code>ali<\/code> \u0645\u0648\u062c\u0648\u062f \u0641\u064a \u062b\u0644\u0627\u062b \u0645\u0632\u0648\u062f\u064a \u062e\u062f\u0645\u0629 \u0625\u0646\u062a\u0631\u0646\u062a.<\/p>\n<p>\u0627\u0644\u062d\u0644 \u0647\u0648 \u0627\u0633\u0645 \u0645\u0633\u062a\u062e\u062f\u0645 \u0645\u0624\u0647\u0644 \u0628\u0627\u0644\u0645\u062c\u0627\u0644: <code>ali@tenant-slug<\/code>. RouterOS sends it verbatim, FreeRADIUS resolves the tenant from the realm, and accounting rows carry the tenant along for free. Retrofitting this later would have meant reissuing every subscriber credential on the platform, so it is worth deciding on day one.<\/p>\n<p><code>radacct<\/code> is the heaviest table by far. It is partitioned by month, with old partitions detached to cold storage after the billing dispute window closes.<\/p>\n<h2 id=\"noisy-neighbor-tenants-in-a-shared-database\">Noisy-neighbor tenants in a shared database<\/h2>\n<p>Row-level tenancy means every tenant shares the same database connection pool and the same query planner&#8217;s attention &#8211; a reporting query one operator runs against their own 50,000 subscribers can slow down every other tenant&#8217;s dashboard at the same moment, something schema-per-tenant isolation would never expose the platform to. Two things keep this from becoming a recurring incident:<\/p>\n<ul>\n<li><strong>A separate read-replica connection for reporting\/export queries<\/strong>, never the same connection pool that serves the operator dashboard and the RADIUS-facing API &#8211; an expensive analytics query degrading reporting for one tenant is an inconvenience; the same query degrading live PPPoE authentication for every tenant is an outage.<\/li>\n<li><strong>Per-tenant query timeouts enforced at the application layer<\/strong>, not left to the database default &#8211; a runaway query from one tenant&#8217;s bulk CSV export should fail that one request, not queue up behind every other tenant&#8217;s traffic.<\/li>\n<\/ul>\n<h2 id=\"automating-routeros-safely\">Automating RouterOS safely<\/h2>\n<p>Pushing configuration to customer routers from a SaaS is the feature operators want and the one most likely to cause a bad day.<\/p>\n<p>Rules NexaLink follows:<\/p>\n<ul>\n<li><strong>Never push a full configuration.<\/strong> Only additive, scoped commands, each idempotent.<\/li>\n<li><strong>Queue every change<\/strong>, with a per-router serial worker. Two concurrent changes to one router is how you get a half-applied firewall.<\/li>\n<li><strong>Read back and verify<\/strong> after each change; a job is not complete until the router confirms the resulting state.<\/li>\n<li><strong>A dry-run mode<\/strong> that renders the exact commands for the operator to review. Trust is earned by showing your work.<\/li>\n<li><strong>A hard stop on rules affecting management access.<\/strong> No automation should be able to lock the operator out of their own router.<\/li>\n<\/ul>\n<h2 id=\"the-migration-i-would-undo\">The migration I would undo<\/h2>\n<p>Early on, invoices stored the plan&#39;s price as a foreign key to the plan record instead of copying the amount onto the invoice line. It worked until the first ISP raised prices \u2014 and every historical invoice silently re-priced itself. Reconciling six months of already-paid invoices against changed totals was a weekend I will not get back.<\/p>\n<p><strong>Financial records must be immutable snapshots.<\/strong> Copy the price, the tax rate, the plan name, and the currency onto the document at issue time. Reference the plan for reporting if you like, but never for the number the customer paid.<\/p>\n<h2 id=\"what-i-would-keep\">What I would keep<\/h2>\n<ul>\n<li>Row-level tenancy with enforcement at three layers.<\/li>\n<li>Realm-qualified RADIUS usernames from the first commit.<\/li>\n<li>Queued, verified, idempotent router automation.<\/li>\n<li>Immutable financial documents.<\/li>\n<li>Boring, well-understood infrastructure \u2014 PostgreSQL, Laravel, Redis \u2014 so the interesting problems stay in the ISP domain, not the plumbing.<\/li>\n<\/ul>\n<h2 id=\"onboarding-a-new-isp-tenant-without-a-support-ticket\">Onboarding a new ISP tenant without a support ticket<\/h2>\n<p>The gap between &#8220;sign up&#8221; and &#8220;actually provisioning subscribers&#8221; is where a lot of self-serve SaaS platforms quietly lose tenants to a support queue. NexaLink&#8217;s onboarding flow deliberately front-loads three decisions a new ISP has to make before their first voucher is issued, rather than letting them discover each one mid-setup:<\/p>\n<ul>\n<li><strong>RADIUS realm slug chosen at signup, not editable later<\/strong> &#8211; since it is baked into every subscriber&#8217;s username from the first activation, changing it after real customers exist means reissuing credentials, exactly the mistake the realm-qualified username design above was built to avoid repeating.<\/li>\n<li><strong>At least one bandwidth plan created before the first voucher can be issued<\/strong> &#8211; a platform that lets an operator generate vouchers with no plan attached just moves the error from signup time to the first angry subscriber call.<\/li>\n<li><strong>A test RouterOS connection verified during setup<\/strong>, using the same dry-run mode described above, so a credential or firewall mistake surfaces as a setup-screen error instead of a &#8220;why isn&#8217;t anything working&#8221; ticket after the first real voucher is sold.<\/li>\n<\/ul>\n<p>None of this is complicated individually. The discipline is simply refusing to let a tenant reach &#8220;sell your first voucher&#8221; with any of these three still undecided.<\/p>\n<p>If you run a small ISP and this stack sounds like what you have been assembling by hand, that is exactly the gap <a href=\"\/ar\/nexalink\/\">NexaLink<\/a> exists to close.<\/p>","protected":false},"excerpt":{"rendered":"<p>Row-level vs schema-per-tenant, FreeRADIUS in a shared platform, safe RouterOS automation, and the migration mistake I would undo if I could.<\/p>","protected":false},"author":1,"featured_media":6415,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"googlesitekit_rrm_CAow6N_ODA:productID":"","_chatbot_visible":"","_zea_seo_title":"NexaLink ISP SaaS Architecture: Multi-Tenant Lessons","_zea_seo_description":"NexaLink ISP SaaS architecture: row-level vs schema-per-tenant, FreeRADIUS in a shared platform, and the migration mistake worth avoiding.","_zea_seo_focus_keyphrase":"NexaLink ISP SaaS architecture","_zea_seo_canonical":"","_zea_seo_robots_noindex":false,"_zea_seo_robots_nofollow":false,"_zea_seo_sitemap_exclude":false,"_zea_seo_cornerstone":false,"_zea_seo_sitemap_priority":"","_zea_seo_og_title":"Designing a Multi-Tenant ISP SaaS: NexaLink Architecture","_zea_seo_og_description":"Behind the scenes of NexaLink: multi-tenant database partitioning, automated MikroTik API provisioning, and billing webhooks.","_zea_seo_og_image":"https:\/\/zilleali.com\/wp-content\/uploads\/2026\/11\/card_post_isp_ops.jpg","_zea_seo_twitter_title":"Designing a Multi-Tenant ISP SaaS: NexaLink Architecture","_zea_seo_twitter_description":"Behind the scenes of NexaLink: multi-tenant database partitioning, automated MikroTik API provisioning, and billing webhooks.","_zea_seo_analysis_score":0,"_zea_ai_pending":false,"_zea_ai_notes":"","_zea_ai_keyword":"","footnotes":""},"categories":[214],"tags":[218,201,198,217,215,216],"class_list":["post-6146","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-nexalink","tag-architecture","tag-freeradius","tag-isp","tag-laravel","tag-nexalink","tag-saas"],"_links":{"self":[{"href":"https:\/\/zilleali.com\/ar\/wp-json\/wp\/v2\/posts\/6146","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/zilleali.com\/ar\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/zilleali.com\/ar\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/zilleali.com\/ar\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/zilleali.com\/ar\/wp-json\/wp\/v2\/comments?post=6146"}],"version-history":[{"count":8,"href":"https:\/\/zilleali.com\/ar\/wp-json\/wp\/v2\/posts\/6146\/revisions"}],"predecessor-version":[{"id":6388,"href":"https:\/\/zilleali.com\/ar\/wp-json\/wp\/v2\/posts\/6146\/revisions\/6388"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/zilleali.com\/ar\/wp-json\/wp\/v2\/media\/6415"}],"wp:attachment":[{"href":"https:\/\/zilleali.com\/ar\/wp-json\/wp\/v2\/media?parent=6146"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/zilleali.com\/ar\/wp-json\/wp\/v2\/categories?post=6146"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/zilleali.com\/ar\/wp-json\/wp\/v2\/tags?post=6146"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}