0

I am working on an ASP.NET web application(using .NET 4.5 and C#).The application deals with lot of units (for measuring like KG,Litre,KM etc). So based on the selected unit we have to implement some allowed range.This values can be configured without much effort. We identified two solutions for this

  1. Keeping a configuration xml. Suppose the values in xml, does it requires an iisreset or any other thing which can take the site down for some time, if we are changing the xml file to change some validation.

  2. Keeping in Db, then use SQL dependency caching. So an update to DB can reflect the caching values.SO i believe if we change the values, it will update the cache. How much complex is this and does it effect the performance ?

It will be great helpful, if we have some other method to achieve this.

EDIT

Dear All I am not having a technical issue. I need a solution to handle this situation. I identified two solutions. I need someone to review this. or provide any other better solution.

Thanks in advance.

4
  • I'm afraid this is too broad. See FileSystemWatcher vs polling to watch for file changes for detecting XML file changes and Is there something like the FileSystemWatcher for Sql Server Tables? for SqlDependency. Commented Jun 13, 2014 at 9:18
  • @CodeCaster I am not having a technical issue. I need a solution to handle this situation. I identified two solutions. I need someone to review this. or provide any other better solution. Commented Jun 15, 2014 at 9:47
  • You have two possible solutions and you should have a list of requirements, so you can evaluate (by prototyping and benchmarking) the two implementations. There's little we can do, I'm afraid. Commented Jun 15, 2014 at 9:48
  • @CodeCaster these are the solutions I know, but i am expecting some one to saying that there is another solution etc. I did the poc and its works fine. but to make sure that I am following the correct way, because after some day, if someone else is working then they dont feel this a bad approach Commented Jun 16, 2014 at 5:27

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.