Skip to content

Commit 57bbd37

Browse files
committed
Create batch file helpers for Demo Deployments
1 parent a02368a commit 57bbd37

17 files changed

Lines changed: 183 additions & 26 deletions

InterProcessCommunication/TradingApp/.Notes/PresentationScript.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ <h4 id="bootstrapp-iquarc.appboot">6. Bootstrapp iQuarc.AppBoot</h4>
192192
<ul>
193193
<li>only function calls between them</li>
194194
<li>Already advantages in Dependencies Management, Modularity and constraints for achieving Separtaion of Concerns</li>
195-
<li>The deployment diagram for this would have ONE box: &quot;The App&quot;
195+
<li>The deployment diagram for this would have ONE box: &quot;The App&quot; (<em>HostAllInConsoleUi</em>)
196196
<ul>
197197
<li>Inside I have modularization and SoC, but everythig deploys on one box (an web server)</li>
198198
<li>I may have scalability (if stateless) , availablity and high maintainability. Valid and OK scenario!</li>
@@ -248,7 +248,7 @@ <h4 id="implement-the-consolehost-w-web-api-self-host">7. Implement the ConsoleH
248248
</li>
249249
<li><p>ConsoleUi and ConsoleHost load the QuotationServices (and all of the other services) in their process.</p>
250250
<ul>
251-
<li>We have one <strong>fat</strong> process</li>
251+
<li>We have one <strong>fat</strong> process (digrams: <em>HostAll</em> &amp; <em>HostAllInConsole</em>)</li>
252252
</ul>
253253
</li>
254254
<li><p>When someone calls the <code>/api/Portfolio/</code> the PortfolioService impl calls (in process) the IQuotationsService</p>

InterProcessCommunication/TradingApp/.Notes/PresentationScript.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ public enum OrderType
159159
- For now, all are loaded in the same process w/ ConsoleUi
160160
- only function calls between them
161161
- Already advantages in Dependencies Management, Modularity and constraints for achieving Separtaion of Concerns
162-
- The deployment diagram for this would have ONE box: "The App"
162+
- The deployment diagram for this would have ONE box: "The App" (*HostAllInConsoleUi*)
163163
- Inside I have modularization and SoC, but everythig deploys on one box (an web server)
164164
- I may have scalability (if stateless) , availablity and high maintainability. Valid and OK scenario!
165165

@@ -190,7 +190,7 @@ public enum OrderType
190190
- References only to `Contracts` Look at the *Project Dependency Diagram*
191191

192192
- ConsoleUi and ConsoleHost load the QuotationServices (and all of the other services) in their process.
193-
- We have one **fat** process
193+
- We have one **fat** process (digrams: *HostAll* & *HostAllInConsole*)
194194

195195
- When someone calls the `/api/Portfolio/` the PortfolioService impl calls (in process) the IQuotationsService
196196
- same when `/api/Orders/ is called
@@ -284,7 +284,6 @@ public sealed class ServiceProxyRegistrationBehavior : IRegistrationBehavior
284284
- Add in `app.config` different ports for each service
285285
- > `git ch ipc-step10a`
286286
287-
288287
**Points:**
289288

290289
- ***Inter-process* / *In-process* communication ONLY throug deployment**
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<?xml version="1.0" encoding="utf-8" ?>
2+
<configuration>
3+
<startup>
4+
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6.2" />
5+
</startup>
6+
<appSettings>
7+
<add key="BaseAddress" value="http://localhost:9001/" />
8+
9+
<add key="IPortfolioService_Address" value="http://localhost:9001/"/>
10+
<add key="IQuotationService_Address" value="http://localhost:9002/"/>
11+
<add key="IOrdersService_Address" value="http://localhost:9003/"/>
12+
</appSettings>
13+
</configuration>
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<?xml version="1.0" encoding="utf-8" ?>
2+
<configuration>
3+
<startup>
4+
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6.2" />
5+
</startup>
6+
<appSettings>
7+
<add key="BaseAddress" value="http://localhost:9002/" />
8+
9+
<add key="IPortfolioService_Address" value="http://localhost:9001/"/>
10+
<add key="IQuotationService_Address" value="http://localhost:9002/"/>
11+
<add key="IOrdersService_Address" value="http://localhost:9003/"/>
12+
</appSettings>
13+
</configuration>
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<?xml version="1.0" encoding="utf-8" ?>
2+
<configuration>
3+
<startup>
4+
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6.2" />
5+
</startup>
6+
<appSettings>
7+
<add key="BaseAddress" value="http://localhost:9003/" />
8+
9+
<add key="IPortfolioService_Address" value="http://localhost:9001/"/>
10+
<add key="IQuotationService_Address" value="http://localhost:9002/"/>
11+
<add key="IOrdersService_Address" value="http://localhost:9003/"/>
12+
</appSettings>
13+
</configuration>
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
cd %1
2+
3+
del ..\..\Deploy\HostAll\*.* /F /Q
4+
5+
xcopy ..\*.dll ..\..\Deploy\HostAll\ /Y /I
6+
xcopy ..\ConsoleHost.exe* ..\..\Deploy\HostAll
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
cd %1
2+
3+
call .\Deploy-HostPortfolio.bat
4+
call .\Deploy-HostQuotation.bat
5+
call .\Deploy-HostSales.bat
6+
7+
copy startAll.bat ..\..\Deploy
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
cd %1
2+
3+
del ..\..\Deploy\Portfolio\*.* /F /Q
4+
5+
xcopy ..\*.dll ..\..\Deploy\Portfolio\ /Y /I
6+
xcopy ..\ConsoleHost.exe ..\..\Deploy\Portfolio
7+
xcopy ConsoleHost.Portfolio.config ..\..\Deploy\Portfolio
8+
rename ..\..\Deploy\Portfolio\ConsoleHost.portfolio.config ConsoleHost.exe.config
9+
10+
del ..\..\Deploy\Portfolio\Quotations.* /F /Q
11+
del ..\..\Deploy\Portfolio\Sales.* /F /Q
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
cd %1
2+
3+
del ..\..\Deploy\Quotation\*.* /F /Q
4+
5+
xcopy ..\*.dll ..\..\Deploy\Quotation\ /Y /I
6+
xcopy ..\ConsoleHost.exe ..\..\Deploy\Quotation
7+
xcopy ConsoleHost.Quotation.config ..\..\Deploy\Quotation
8+
rename ..\..\Deploy\Quotation\ConsoleHost.quotation.config ConsoleHost.exe.config
9+
10+
del ..\..\Deploy\Quotation\Portfolio.* /F /Q
11+
del ..\..\Deploy\Quotation\Sales.* /F /Q
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
cd %1
2+
3+
del ..\..\Deploy\Sales\*.* /F /Q
4+
5+
xcopy ..\*.dll ..\..\Deploy\Sales\ /Y /I
6+
xcopy ..\ConsoleHost.exe ..\..\Deploy\Sales
7+
xcopy ConsoleHost.Sales.config ..\..\Deploy\Sales
8+
rename ..\..\Deploy\Sales\ConsoleHost.sales.config ConsoleHost.exe.config
9+
10+
del ..\..\Deploy\Sales\Quotations.* /F /Q
11+
del ..\..\Deploy\Sales\Portfolio.* /F /Q

0 commit comments

Comments
 (0)