Subscribe: Architecture
http://forums.asp.net/rss.aspx?ForumID=16&Mode=0
Added By: Feedage Forager Feedage Grade B rated
Language: English
Tags:
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

Architecture



Discuss and debate ASP.NET application designs.



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

 



Content Workflow approval in .Net

2018-04-19T16:15:26.007-07:00

Hi,

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. 

Regards
Vivek




Advance Coding Style and web Architecture

2018-03-06T16:54:57.153-08:00

Hi, 

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.

2018-04-08T07:35:27.037-07:00

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()
{
_context.Dispose();
}

#endregion


#region Implementation of IUnitOfWork

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


#endregion
}

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.


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


}


});
_unitOfWork.Complete();
return RedirectToAction("Index");
}
}




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

2018-03-13T07:32:33.453-07:00

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

2018-03-13T09:41:44.823-07:00

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.

Regards,

Kiran




do i need use multidimensionnel model in this case?

2018-01-08T09:43:39.387-08:00

Hello

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

2018-02-28T06:06:01.267-08:00

Hi,

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.

EX. http://testcreative.co.uk/wp-content/uploads/2017/10/Test-Logo-Small-Black-transparent-1.png

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?

2018-02-27T07:15:39.18-08:00

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

1-MINMAX INVENTORY

MINMAXID
INVORG
ITEM
DESCRIPTION
PRIMARYUOMCODE
MINQTY
MAXQTY
2-INVENTORY

INVNO
INVORG
ITEM
DESCRIPTION
ONHANDQTY


How can I do this in asp.net(C#)? any idea?, could you please give me an reference related my problem above, thank you.
Regards,

Cloudfiers




Modern business application architecture - feedback request

2018-02-01T22:46:42.287-08:00

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

2018-01-31T21:31:17.087-08:00

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 https://www.codeproject.com/Articles/1132742/In-Search-of-the-Ultimate-DataTable-Serializer).

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.

Thanks!




Suggestions for architecture migration to new, performant te hnologies

2018-01-16T18:40:55.91-08:00


Hi all,



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



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



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

2018-01-12T05:01:17.843-08:00

Hi,

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..

Thanks,




Download large amount of data

2018-01-16T03:41:54.06-08:00

Hi,

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...

2018-01-09T14:22:52.213-08:00

I finished my asp.net 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 ?

Thanks




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

2018-01-05T12:27:08.75-08:00

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?
  2. ASP.net??
  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

2018-01-06T04:35:25.067-08:00

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

2018-01-03T14:37:43.437-08:00

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

please some one discuss it with a nice example. thanks




Commenting out code in your application

2018-01-03T13:36:30.28-08:00

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

2017-12-21T22:01:57.923-08:00

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:

https://github.com/EduardoPires/EquinoxProject/blob/master/src/Equinox.Application/Services/CustomerAppService.cs




How to setup - Email Approval for a business process application

2017-12-27T07:41:15.223-08:00

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...