Skip to content

Feat/busy database #144

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 8 commits into
base: main
Choose a base branch
from
Open

Conversation

v-fearam
Copy link

@v-fearam v-fearam commented Oct 18, 2024

From Readme

It is a sample implementation to ilustrate Busy Database antipattern

The BusyDatabase sample code comprises the following items:

The BusyDatabase WebAPI project contains two controllers:

  • TooMuchProcSqlController

  • LessProcSqlController

The Get action of both controllers returns an XML formatted list of order details.
The TooMuchProcSqlController runs the Transact-SQL statement defined in the TooMuchProcSql.sql file in the project to retrieve and format the data by using Azure SQL Database. The LessProcSqlController uses the simpler Transact-SQL query defined in the LessProcSql.sql file in the project to retrieve the data and uses .NET to format the result.

Redo the example following the same concept:

  • .NET 8 ASP.NET Core Web API
  • Deploy Azure Database with the AdventureWorksLT sample
  • Adapt queries to fit the AdventureWorksLT sample model
  • Adapt Readme

image

The application run locally against a deployed database. The same idea than cloud patterns.

image

image

image

@v-fearam v-fearam force-pushed the feat/busy-database branch from a927279 to 3d61598 Compare April 11, 2025 11:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant