Subscribe: Architecture
Added By: Feedage Forager Feedage Grade A rated
Language: English
application  architecture  data  database  iserviceprovider object  net core  net  object  project  public  servicetype  void singleton  void 
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: Thu, 23 Feb 2017 02:36:04 -0800


Windows Workflow Foundation, Sendgrid or an other for send emails.


I'm building an application that will need to send e-mails and approval emails constantly. 

Should I use Sendgrid with a bus, WF or an other api?

Methodology for updating server side lists


I am currently writing a ASP.Net web application that has a section for out IT department to manage users. One of the things it will do is give a checkbox list of the active directory security groups and email groups a user can be a member of. I was easily able to work out the code needed to add a user to a group when the use is first created. Now I am trying to figure out an efficient way to update the groups when a user changes, for instance the user is part of 5 groups and IT updates them to add a new group and remove them from 2 existing groups.

I have thought about just doing a blanket remove from all the groups then go back and add them back to the selected ones. I have also thought of querying to get a list of all the groups they are in now, doing a compare to a list of the selected groups, calculating out which ones where removed and which where added then doing the appropriate calls. Both these methods do not seem very efficient and potentially process intensive.

What is the more common ways a skilled/experienced developer deals with this kind of situation?

Enterprise Architecture - Question/Feedback/Suggestions


We work at a very large global enterprise.  We have built numerous .NET applications using framework 4.0 and 4.5.2. 

Our business team wants us to provide them a "platform" like application. One where they can create forms and collect data. One where they can "drag & drop" workflows for these custom forms they build, all from the UI. Thus alleviating the need to have the technology team build a new app every time they need a form to collect data. They want everything to be API based, so that we can possibly allow external or internal third parties to consume and leverage the application/platform we build. They are basically trying to evaluate build VS buy. Does it make sense to build up and advance our existing apps to provide this functionality or do we buy a product off the shelf.

If we do go down the build path, our technology stack of choice is going to be .NET CORE. This will allows us to leverage a lot of our existing code base and reuse it. We will most likely use Angular or MVC Hybrid as the frontend UI.


We know how to create a dynamic form build with pure .NET code, as we have done that before. Are there any open-source plugins or tools that we can use with our .NET Core code that would allow us to easily offer the form builder and dynamic workflow builder to the business team. Are there any small JS libraries that could make this capability simpler for us to build. Rather than us build the entire functionality from the ground up.

Any and all suggestions are most welcome! (image)

Best practice to override global data with region data


I have a music store application and it is used in various locations. Most of the locations have same defaults but there exist few remote regions with regional specifics and need to overwrite the defaults. Details below 
Global defaults:
Default Language = English
Popular Music = Pop

Remote1 defaults:
Default Language = Spanish
Popular music = Rap

Remote2 defaults:
Default Language = Italian
Popular music = Jazz

When a Music store user logs in to the app, by default the global data is loaded into the class and then verify if user's data has to be overridden with his regional specifics. I could do this simply by loading the global defaults and then verify if the user has local specifics and then overwrite the global defaults using simple sequence of statements and if conditions. But curious to know if I could use a best OO pattern. 

How do you draw the relationship between a workflow table and the request order?


Hi expert,

I am requested to come up with the database schema with relationship between tables.

Now, using the reference database, there is this workflow table which contains as follows:


ID int PK, not null
Status (varchar(50), not null
next-Status (varchar(50), not null
Workflow_TaskID(int, null)
Next_Workflow_TaskID(int, null)
Action(varchar(50), null)

And then this status also appears in my RequestOrder Table.

But, I can't put Status as my Foreign Key in my RequestOrder Table right ?

How should I draw the line between these 2 tables ? It is many to 1 but I am stuck cos the PK - ID doesn't appear in the Request Order Table.

Hope to get some advice. Tks.

How to set up a website for offline work for multiple users


Here's an example of what I'm trying to do.

Let's say I've made a fx trading bot that uses a fx brokers website, queries the prices, and submits trades according to settings specified. It runs fine in a console application from my raspberry pi.

Now I would like to commercialize it in a website where I can have multiple users running their own instance of the bot with their own settings and have each bot run 24/7.

I'm having trouble conceptualizing the design of it to accomplish the constant, individual running of bots from a website. Each user running on it's own thread? Thread sharing? Anybody have some pointers?

I've done windows forms but not websites, and I haven't done things that require it to run even when the user isn't on it.

Onion architecture is same as domain driven design pattern or is it totally different ?


please have a look at two links

i read article from those links and i feel Onion architecture is same as domain driven design pattern. so please some one tell me am i right ?


Manage Unit Test with Complex Architechture


Hi Experts,

I have attached overview of my application architecture (

I have web application which is dependent on few of window application.Following are process steps.

1)Create request for process (win. appl 1) and store it into database.
2)Scheduler pick this request from database.
3)Scheduler invoke respective window application.
4)Window application process and update database.
5)Web get updated status from database and requred tables

Now, I have unit test project for web application.How can i make test case for this.

What are the standard options?


Real-time Extraction of Data from Access DB


Good day all,

I am about to implement a solution for a Bank, the solution is to read/extract transaction details from an ATM and read same into a database, numbered below is the workflow, I am not just sure of the best architecture to impose.

  1. The Bank has about 1,000 ATMs, connect to each ATM at 30 Minutes interval and move each Journal file from the ATM directory to a specific and centralized location.
  2. The Journal files are in ACCESS DB format.
  3. The file numbering system in the directory grows by size, so its possible to find only one file in a terminal but find up to 3 files in another terminal
  4. Read through each file and extract its record to a Database table
  5. The read/write of these records to the database is meant to be almost real-time (about 30mins delay the least), so its possible that the same file read in the first throughput is read again, however, only unique records should be imported into the database table.

I can clarify further if there are grey areas, thank you.

Entities and POCO objects


Hi all,

I want to ask you for a help. Two software solutions I'am working on are implemented using, and N-layered architecture.

But, I can not understand that we use data objects (poco classes) to fill it using data reader, and the same objects we use in web api and angular application.

There are no any other models in solution. What you are think about that and how we can improve our solution?

Code explanation


Does anyone can explain  me code below. I inherited application and found this piece of code, but it is not clear for me. public interface IAppServices : IServiceProvider, IDisposable { bool IsRegistered(Type serviceType); bool IsRegistered(); void Register(Type serviceType, Func serviceFactory); void Register(Type serviceType, Type implementationType); void Register(Func serviceFactory); void Register(); void Singleton(Type serviceType, Func serviceFactory); void Singleton(Type serviceType, Type implementationType); void Singleton(Type serviceType, object serviceInstance); void Singleton(Func serviceFactory); void Singleton(); void Singleton(TService serviceInstance); } and interface implementation public class AppServices : Disposable, IAppServices { private object m_syncObject; private IDictionary> m_factories; private IDictionary m_instances; public AppServices() { m_syncObject = new object(); m_factories = new Dictionary>(); m_instances = new Dictionary(); } protected override void OnDispose() { m_factories.Clear(); foreach(var kvp in m_instances) { if (kvp.Value is IDisposable) (kvp.Value as IDisposable).Dispose(); }; m_instances.Clear(); base.OnDispose(); } public void Singleton(Type serviceType, object serviceInstance) { ArgumentsGuard.NotNull(serviceType, "serviceType"); ArgumentsGuard.NotNull(serviceInstance, "serviceInstance"); Register(serviceType, (provider) => { m_instances[serviceType] = serviceInstance; return serviceInstance; }); } public void Singleton(Type serviceType, Func serviceFactory) { ArgumentsGuard.NotNull(serviceType, "serviceType"); ArgumentsGuard.NotNull(serviceFactory, "serviceFactory"); Register(serviceType, (provider) => { object instance = serviceFactory(provider); m_instances[serviceType] = instance; return instance; }); } public void Singleton(Type serviceType, Type implementationType) { ArgumentsGuard.NotNull(serviceType, "serviceType"); ArgumentsGuard.NotNull(implementationType, "implementationType"); Register(serviceType, (provider) => { var ctor = implementationType.GetConstructors().Single(); var parameterTypes = ctor.GetParameters().Select(p => p.ParameterType); var dependencies = parameterTypes.Select(t => provider.GetService(t)).ToArray(); var instance = Activator.CreateInstance(implementationType, dependencies); m_instances[serviceType] = instance; return instance; }); } public void Register(Type serviceType, Func serviceFactory) { ArgumentsGuard.NotNull(serviceType, "serviceType"); [...]

Combining Nodejs with ASP.NET for a scalable architecutre.


Hello, i am a student, i am working in another domain then programming, i would like to hear your thoughts about this.

I need to build a highly scalable website, actually i need it to be as cheap as possible since my cash reserves are rather limited.

Apart from various caching strategies and so forth, here is one strategy i want to implement.

I will have 2 separate sites.

One will be a NodeJs powered website, that will serve static content (scripts, css, angular 2, have webpack running on it).I want to have it NodeJS because i want to learn a bit about Node in the process, and it is really hard to work with Angular 2/typescript enviromnent in visual studio for me.( some will disagree and thats fine ).

The other will be a ASP.NET WEB API 2 powered website, which will only expose some endpoints for the nodejs application to consume data.

Both will be hosted in Microsoft Azure's Web Apps.

Is this a good idea? are there any drawbacks, what do you guys think?

I understand Node runs on a single thread as javascript does.If i have a 2 cpu machine on Azure, will Node run on those 2 cpus as different instances, or will it just use one thread and the other cpu will stand by idly.

Implementing Strategy Design Pattern


I'm trying to use the Strategy pattern to calculate the pay of Salaried employees, Hourly employees, Contract employees etc. 

Below is how I implement the Strategy pattern.

public class Employee
    public string Name { get; set; }    

public class HourlyEmployee: Employee
    public double HoursWorked{ get; set; }
    public double HourlyRate{ get; set; }
    public HourlyEmployee(string name, double hours, double rate)
    { Name = name; HoursWorked = hours, HourlyRate = rate;}

public class SalariedEmployee: Employee
    public double MonthlyPay{ get; set; }
    public SalariedEmployee(string name, double rate)
    { Name = name; MonthlyPay = rate}

public interface ICalculatePayStrategy
    double CalculatePay(Employee employee);
public class HourlyEmployeePayStrategy: ICalculatePayStrategy
    double CalculatePay(Employee employee)
        HourlyEmployee hourlyEmp = employee as HourlyEmployee;
        if(hourlyEmp == null)
        return 0;
        return hourlyEmp.HoursWorked* hourlyEmp.HourlyRate;

public class SalariedEmployeePayStrategy: ICalculatePayStrategy
    double CalculatePay(Employee employee)
        SalariedEmployee salariedEmp = employee as SalariedEmployee;
        if(salariedEmp == null)
        return 0;
        return employee.MonthlyPay;

public class PaymentService
   private ICalculatePayStrategy payStrategy;
   public PaymentService(ICalculatePayStrategy strategy)
       ICalculatePayStrategy = strategy;
   public double GetEmployeePay(Employee employee)
      return payStrategy.CalculatePay(employee);

 Please let me know if my code above implements the Strategy design pattern correctly. Also is this an ideal scenario for using the Strategy pattern?

Need some books or any tutorial for software architecture


Hi All Architects,

Can someone suggest any good guide/tutorial for software architectural design.



Handling assembly references in ASP.NET Core



     Just want to check on something, its about handling assembly references in ASP.NET Core. For example I have an ASP.NET Core Web API project that depends on another project say a class library called Service, this Service project in turn depends on a class library for example called Data. The intention is to reference only the service project in the ASP.NET Core Web API project so that anyone who works on that project will not be able to access implementation details that are on the Data project. 

       But currently, looking at how ASP.NET Core handles references, it seems that it also includes all the references 'underneath'. In the snapshot below, I only added a reference to the Service Project, but it seems that it also sees the Data Project (which is not my intention at all). Checking in the actual code, I am able to access the Data project (without performing an add reference operation), just want to ask if there is a way to disable this behaviour? Normally we won't be able to reference anything on a project without adding it explicitly as a reference, but in this case, I just added reference to Service and it seems that it automatically added a reference to the Data project as well.

       Is there any way to avoid this behaviour in ASP.NET Core? I mean not entirely but disable it only when adding references to projects in the solution.


Jude Alquiza.

MVC with Angular JS or ASP .Net


Hi friends,

I need to implement a project in Angular JS 2.0 , there is no mention by the client to use classic ASP.Net or MVC.

My problem is I am new to Angular as well as MVC. I wanted to know if I can use Angular with classic ASP.Net  (this will be simpler for me)  or there are constraints in this design?

I also wanted to know, how useful / easy will it be to use MVC with angular by learning it. Project will kick off in January 1st week.

Metadata driven architecture


Need advice on below architecture. Need to know advantages and disadvantages of below architecture.

We  need to create metadata driven architecture where Metadata is nothing but UI layout .i.e Form layout consisting of Form and Controls which needs to be stored in a database. And UI will be generated from this metadata dynamically and will be rendered on browser. 

Please advice is it good idea to dynamically create a form from Metadata? 

Architecture for management of downloadable files by temporary link from server


Hi everyone,

I state immediately that I'm not an expert about ASP.NET but I just approached this world. I come right to the point. The main goal is distribution of a software package by download it from a personal area of a web server.

In outline the process is this:
1. A user registers himself on the website by entering the usual data such as e-mail address;
2. He get an email with a temporary link for e-mail confirmation;
3. After the e-mail confirmation, in his area is activated a link where the user can download the installer of the program;

Of course, all done in ASP.NET.

So I would start a discussion about this subject about how to achive my goal,. Does anyone know direct me?

Thank you all


How to collect Manufacturing unit machine details data automatically?


Dear All,

We have different type of requirement from our manufacturing Unit, in our manufacturing unit we have nearly 10 to 15 machines, and they would like to collect machine details like machine processing time, idle time, breakdowns, and throughput. On daily basis these information should be captured automatically and store it in database without manual interruption.

Is it possible via .Net program? if so please share your thoughts that how to achieve this using .Net.

Warm Regards,


Automatic Email notification from ASP.NET with out window service or console app


We have developed application in, database is SQL server and deployed in local iis server on client environment. Currently we got new requirements to send notification email to user before 30 days of content expiration.

Client clearly said they will not install and maintain the window service or console application scheduled task on their server.

Is there any way to send the automatic notification from application? Please share your solution approach to achieve this.