Subscribe: Architecture
Added By: Feedage Forager Feedage Grade B rated
Language: English
app  application  architecture  business  code  data  design  email  mvc  net mvc  net  server  service  time  unitofwork  web 
Rate this Feed
Rate this feedRate this feedRate this feedRate this feedRate this feed
Rate this feed 1 starRate this feed 2 starRate this feed 3 starRate this feed 4 starRate this feed 5 star

Comments (0)

Feed Details and Statistics Feed Statistics
Preview: Architecture


Discuss and debate ASP.NET application designs.

Last Build Date: Fri, 20 Apr 2018 09:12:57 -0700


Content Workflow approval in .Net



I am required to develop a web application which has one web page with content ( video, Images, Messages - about 5 of those in total) that changes with a frequency of a week on an average. This content is approved at two levels before shows up on the site. This application is supposed to run on multiple web server with a load balancer to support web farm scenario to cater peak user scenarios nicely. 
I am contemplating what technology/solution would be a right decision. Should I go onto using sharepoint with msflow to setup the content approval scenario or develop this logic in .net and store files in sql/file server. any suggestions or reference to read from will be greatly appreciated. 


Advance Coding Style and web Architecture



I learn and practice everything about ASP.NET MVC 5 (Don't want to go on dotnetcore now due to some reasons)

Read and practice almost all Patterns e.g Repository ,UnitOfWork, and some GOF patterns.

Hand on EF code first.

But I still want to dig more about ASP.NET MVC  web development about programming styles and how to code in a perfect manner.

Cause when I see the coding style of some higher level web sites e.g nopcomerence (an open source e-commerence website )I observe that I still missing something.

Can someone guide me what I am missing?

No parameterless constructor defined for this object.


public class UnitOfWork : IUnitOfWork
private readonly AvidContext _context;
public UnitOfWork(AvidContext context)
_context = context;

Courses = new CourseRepository(_context);


#region Implementation of IDisposable


Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public void Dispose()


#region Implementation of IUnitOfWork

public ICourseRepository Courses { get; private set; }
public int Complete()
return _context.SaveChanges();


public class CourseController : Controller
private readonly IUnitOfWork _unitOfWork;

public CourseController(IUnitOfWork unitOfWork)
_unitOfWork = unitOfWork;
// GET: Course
public ActionResult Index()
var courses = _unitOfWork.Courses.GetAll();
return View(courses);

 //we call throw this error 

//No parameterless constructor defined for this object.

public ActionResult Save()
_unitOfWork.Courses.Add(new Course
Name = "CSharp",
Author = new Author
Name = "Mehran"


return RedirectToAction("Index");

Best practice to map ViewModel and DataModel data from view in asp mvc


I have designed a framework to map the DataModel and View Model's data from view using Reflection(it's a kind of auto mapper)in asp mvc. I know, if we use reflection, we will get performance issue. Anyone having best and Architecture level best solution for this in Enterprise level application?

How many Service calls to call if there three data panels in a page in angularjs mvc


Hi ,

In my project there is a dashboard to show when logged in. There are three grids to load in the dashboard. So How should we design my service layers. Shall i design my service layers to have three service methods to fill all three grids. Or only one service methods to get three grids data and bind in one service call. Which is preferred  and why?

If all grids data is retrieved then it will take long time to pulls three grids data but only one service call and internally one database call. and page will take time to load . If we call three service calls. then as we get data we will be binding the grids and one after one the grids will be loaded. But here we will be making three service calls internally three database calls.

Which of these two is preferred long time with one service and db calls or short time with multiple db calls.

Please give suggestion with the proper reasons. I am using mvc, angularjs ,web api2 ,entity framework and sql server.



do i need use multidimensionnel model in this case?



I have to develop a computer application using ASP.NET MVC technology, for the calculation of the JET A1 fuel product prices for the aviation.

I want to know, the way to go for I can do the design of the system. do do i need use multidimensionnel model in this case? what do you advice me?

it should be known that the calculation is done in several stages according to my information.

For step # 1:

the user must determine:

  • decade (the price is calculated every 10 days).
  • the price of the product put in FOB.
  • the selling price (is the price given by the committee of the company marketing the product).

For step # 2:

On all the data of step 1 the exchange rate is determined.

For step # 3:

The calculation of the weighted margin and deduce the applied margin.

For step # 4:

On all the data of stage 2 and 3, the price calculation of JET A1, is subordinated for certain formulas according to criteria which are:

  • the quantity requested
  • the national and international network
  • storage center and its area.
  • flight type (scheduled flights and spot flights).

see you soon

Dotnetzip - download media files from CDN



I have read about dotnetzip and it is great, also  I have read article .

but i have little bit different requirement.

I need to download images from my CDN server, not from my web server.


Is there any way to download media files as a zip on client side without effecting memory of web server

how to send automatic email once reach the MINQTY and MAXQTY vs ACTUAL INVENTORY?


Hi Good Day to all,

I have a web site in ASP.NET(C#). And I want to add an automatic email sending functionality in it, i.e. an email will be send if reach the MINQTY and MAXQTY vs ACTUAL INVENTORY to all the stock holders about the orders details placed by registered users.

I have two Tables which is




How can I do this in any idea?, could you please give me an reference related my problem above, thank you.


Modern business application architecture - feedback request


I'm an independent developer. I am working on application for a client. The application will be a SAAS product. The hope is that after my current client starts using it and its working well that I can onboard other clients on to my SAAS application. The application is going to transform thier current paper based "business operations" into an application.

As I am working on the development for this app on my own I keep looking for "templates" that will help reduce my development time so that I can focus on building the core business requirements as requested by my client.

The questions I have for the community and where I would like some feedback center on what is the best design pattern for me to follow for my app?

I have spent a lot of time coding/testing with the ASPNETBOILERPLATE and ASPNETZERO templates. I have tried both the MVC and .NET Core versions.
I have also looked into URF template. I have also read the e-book from MS, about "clean/onion" architecture that is included on this site.
I have also completed several of the Asp.Net core tutorials on Asp.Net Core. Including the "Working with data" tutorial.

After doing all of this reading/learning. I am wondering do I need to go to such lengths and follow these patterns so strictly? What if I just go with the basic Asp.Net core web application (Razor pages or MVC) template that comes in Visual studio and just build everything into one project. Do I need to goto such levels of depth in my architecture for this first version of my app?
One of my concerns has been and still is, that I want to build with the latest tech stack so that my app remains "useful" for a while. I also dont want to be "bleeding edge" and end up with scars everywhere or worse yet, dead!

Thanks in advance to all those that reply!

Need an overview of how an ASP.NET application uses Azure App Service Memory


I'm converting a VS2005-era web application to updated ASP.NET technology.  It will run in an Azure App Service.  The application makes extensive use of Session State and Application Cache.   I need to decide whether to convert to Redis in order to support multiple instances, now or later.  The decision is primarily business driven. i.e. time, budget, business model.   If I can support X users on a single instance, then I might postpone the Redis conversion, which would not be pretty (I like Massimo Fabiano's quote on this at the start of this article

The estimated transaction rate on the server from all concurrent users appears not to be an issue.  The major constraint appears to be cache memory usage.
> I have what I believe are good estimates for the high, low and medium session and application cache memory requirements per concurrent user (very padded out). 
> I know how much memory I can configure on an Azure App Service 
> What I don't know is how much of that memory will be available for cache after OS, application code and application paging.

Any guidance on how to understand those values would be appreciated.


Suggestions for architecture migration to new, performant te hnologies


Hi all,

I work for a company that commercializes a software solution since 2008.

This web application was initially built upon, and evolved to make currently use of 4.5 Framework, ajax, and some other components: amcharts, telerik for

The app is currently a behemoth, and performance has become a big issue. I will try to explain the whole scenario:

+ The web app is a BI solution, which allows the users to visualize performance data on the business

+ There is a DAL which takes care of data requests yo DB server (oracle db). Time soent on db operations is almodt negligible (2-3 secs for really big amounts of data, so no issue there)

+UI makes use of Telerik ASP.NET controls, plus jquery and other libraries such as node

+ graphics are being represented qith amcharts, sort of a D3 implementation

+ dashboards are being built in a fashion where each screen reguon representing data with graphs or tables are using an Iframe, that is, lots of iframes in a pge, each for a graph/table

+ The application allows to filter/drilldown, etc, which means that one can view data at any hierarchy level contained in the database, chamge time periods, etc. This invokes calls to DB, and paints results at the browser end.

Niw the problem is, the client side suffers a LOT because there are huge JS amounts downloaded at the browser, and there is no chance to defer js processing os js either, as Telerik controls are simewhat reluctant to this. Thus, a standard, more-less dashboard
takes 8-15 seconds to be fully displayed, when the actual spent time on database is about 2-3 seconds.... The rest of the time is soent not on downloading data to browser, but processing the Css and Js after getting data results.

We are thus in the raising need to change thus architecture to something much more performing, responsive, lightweight. As our team is not familiar with ‘new technologies’ such as angular, react, mvc, so on, I would like you to advice me on what should we chiose
for this architecture reworking, always keeping in mind that the final objective is to get fastest possible performance, scalable architecture.

Where should we start from? What would you recommend us?

Please ask any questions you may need to in order to have the full picture, should I may have ommited any relevant information!

Many thanks to everyone for your kind advice, regards!

PS: Sorry for some misspelling there, this just written on an iphone so bear with me please :-)

Sending email async to user request



I have an asp. net web api server which sends an email (using gmail APIs) once an order is received. The email should be sent async to the response.

How do I make in asp .net an sync operation regardless of the response to the user? I don't want the operation to delay the response or affect the response to the user.Please note

that in that future, i will need to use this technology to other async operation but will take longer. Note that the server services ionic web app and it doesn't contain any web pages.

Update: I just came across HostingEnvironment. I am still not convinced that I should use this class because there aren't may post in the internet mentioning this class..


Download large amount of data



We are going to develop web page to download large amount of data from 3rd party  api. what are the main limitations/areas we need to think about.

we are going to display data in the web page as well as allow client to download data as file. at the moment api support download 1000 records at a time.

any reason why we can't increase that number.

Thanks for the help 

Data location vs code location... help...


I finished my web apps and put it on cloud server.
It has login function and store data database inside
App_Data folder with various functions consuming data of this database

I am thinking to invite customer to pay a fee to subscribe to such services from this web.
But I am facing a serious problem.

They like the function, but are unwilling put the data in a server not owned by them.

Then, I am unwilling to put my work on a server not owned by me.

So if you were me, how would you resolve this situation ?

In real world, which mode is more common, or there is a better way
or something in between to solve this issue ?


What would be the best direction to go in creating a brand new web app for dating


I am looking for opinions on the best way of going about creating a dating app with minimal monthly cost, state of art interface, and extremely fast response times.

  1. Singe Page Application vs multiple page?
  3. Angular JS vs ReactJS vs. ???
  4.  data storage (MySQL vs MsSQL)
  5. Windows vs linux OS?
  6. Python vs C#?
  7. In the past, I have traditionally used ASP.Net Web Forms, but 100% of HTML has been hard coded with significant JavaScript Front end.  I have done some Angular 2.0 development, and see angular 5.0 is out.  I have never used React.

Any opinions would be greatly appreciated.

Use Microsoft Live ID authentication on our site


Hi, I wanted to use Microsoft Live ID authentication on our site. I have visited several blogs but they all are providing SDK which is obsolete. Can you please guide me further?

When to use observable design pattern


please tell me when to use observable design pattern in mvc and webform. i am looking for a good article on observable design pattern with mvc and webform.

please some one discuss it with a nice example. thanks

Commenting out code in your application


Is it BAD to leave commented out code in your code base when you check files into source control?  Is this a STIG?  I know Unused code is a STIG, but how about commented out code - say to leave for a future developer IF they need that functionality eventually?

Services layer and SuppressFinalize


Can someone explain why the below class should have GC.SuppressFinalize in its dispose method. The class has dependency on Repository object that holds reference to unmanaged resource (DB connection). The dependency is injected via Autofac in my scenario:

How to setup - Email Approval for a business process application


Hello All,

I am preparing an application which is a request - approval system. Currently the application is on Internet. My task is to move the application to Company's Local VPN Network. Situation is when any approver receives email in Mobile Phone, he/she click on a link in the mail-body, it opens in Mobile's browser with the supplied URL path, and the approver clicks on Approve/Reject button to take his desired action instantly.

After moving the application to Company's VPN network, it will not be possible to open the Webpage in Mobile devices due to VPN restrictions, hence there is another technology required - Email Reply with desired action (Approve/Reject).

What I can do is - can make 2 links with mailto:  (to set the predefined To, Subject, Body) for Approve or Reject in mail body.

Please Note: We have Lotus Notes as mail platform, and using its SMTP service to relay emails to users.

I could not find the satisfactory solution to setup incoming email in IIS or lotus server and next step would be trigger function when any new mail is there.

If above is possible with Lotus Notes or can I setup any new custom email on local server of IIS, Please support me...