Quantcast
Channel: SQLServerCentral » SQL Server 2014 » Administration - SQL Server 2014 » Latest topics
Viewing all articles
Browse latest Browse all 6525

Replication Architecture for a Web Based Business Application

$
0
0
I’ve been tasked to create [b]horizontal scaling[/b] for our web based business application.Here’s what I got for my development environment to roll into production when complete.1. 5 IP Addresses.2. 10 Medium Sized Servers, 1 Large Server, 11 Servers Total.3. VS 2012, SQL Server 2014, IIS 6.2, Windows Server 2012R2.The database and all the code is clean/indexed, we’re just at that point where we need to spread the load horizontally. We decided to keep things simple and not install (other than network) load balancing strategies and want to keep things simple and at the transaction level and our disk folks are already doing a good job. The application is [b]mostly stored procedures[/b] with very little .Net C# code, basically .Net is just used for the I/O between IIS and SQL Server. The database is heavily segmented into separate databases. In other words there is a database for accounting, security, customers, employees, inventory, etc. or a total of about 50. When I first saw it I got scared but the performance is great with the varying disk options per database and it’s nice not having to back-up data or databases every day that don’t need to be backed up. We don’t even use a fully qualified name, in stored procedures we just use [database].[schema].[object]. Here’s our thinking:1. 1 IP Address and 1 IIS Server for home page requests.2. 4 IP Addresses and 4 IIS Servers to serve subsequent page requests. A routine has already been created to load balance the requests. In other words the HTML is created dynamically and one client might be sent to URL http://server1.example.com/fom1 and another client to http://server3.example.com/form1 or two different servers for the same request pointing to separate database subscribers.3. 1 server for the SQL Server publisher of all databases.4. 5 servers for the SQL Server subscribers.5. For future growth per stack 1 IP Address, 1 IIS Server, 1 Subscriber Server, a tweak to the routine that farms out URL’s, and a new subscription push or pull.[b]Here’s the problem and it’s a big one.[/b] All the stored procedures although none of them do any heavy inserts, updates, or deletes all do at least a few logging requests, changing a customer name, etc. I spent a couple hours browsing and reading but I couldn’t find a solid answer but here’s my question. [b]If a request comes in to IIS Server 2 that runs a stored procedure on Subscriber Server 2 how is data updated on the publisher? [/b] I understand subscribers are for read only (good thing) unless you license the enterprise version with peer to peer but I just want to make sure I have it right. The only workaround would be to create a linked server back to the publisher for each subscriber and change the t-sql syntax to accommodate the linked server requirements. Is that right? If you’re familiar with this issue please let me know. [b]Any help is greatly appreciated.[i][/i][/b] Thanks

Viewing all articles
Browse latest Browse all 6525

Trending Articles