locked
Accessing a database with web services...which architecture. RRS feed

  • Question

  • User1174454301 posted

    Please help me out with this


    Suppose we are building a web-based application to retrieve and enter information into a database.  The user-interface invokes web services.  Which architecture  would use for the application.


    Friday, September 10, 2010 12:57 PM

Answers

  • User1444430368 posted

    I suggest you go through the Application Architecture Guide:
    http://apparchguide.codeplex.com/

    A lot of decisions have already been made by you. Like do you really need a web-based application? Do you really need web services? Who or what is going to consume these services? Do you have a SLA or different SLA's for these services? And so on... There are many functional and non-functional requirements that you need to capture and then there are techniques like ATAM that you can choose to decide which architecture will be the better (not the best) one for this project.


    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Tuesday, September 14, 2010 10:33 AM

All replies

  • User-952121411 posted

    The user-interface invokes web services.  Which architecture  would use for the application.
     

    What are the nature of services being invoked by your UI?  I would hope it is making calls to your domain layer and not directly to the database, but please provide some more detail.

    Friday, September 10, 2010 4:01 PM
  • User-389939489 posted

    makpen:> Suppose we are building a web-based application to retrieve and enter information into a database.  The user-interface invokes web services.  Which architecture  would use for the application.

    Sounds like AJAX would fit well into your UI layer, but you could query web services as easily from a code-behind. As for the back-end, as long as the application is supposed to only perform data-driven tasks, all you need is a proper Data Access Layer wrapping the database and to be consumed through the web services facade.

    atconway:> I would hope it is making calls to your domain layer and not directly to the database

    You assume a lot. There is no place for domain layers in my apps: am I out of business?

    -LV

    Tuesday, September 14, 2010 10:23 AM
  • User1444430368 posted

    I suggest you go through the Application Architecture Guide:
    http://apparchguide.codeplex.com/

    A lot of decisions have already been made by you. Like do you really need a web-based application? Do you really need web services? Who or what is going to consume these services? Do you have a SLA or different SLA's for these services? And so on... There are many functional and non-functional requirements that you need to capture and then there are techniques like ATAM that you can choose to decide which architecture will be the better (not the best) one for this project.


    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Tuesday, September 14, 2010 10:33 AM
  • User-952121411 posted

    You assume a lot.
     

    You are right, you made a good assumption yourself. It is not often here on this forum that calling the database, DAL, or data layer of any sorts from the code behind the web form is promoted often. There is a place for it, but those types of apps typically do not have their questions veer into the architecture forum for help.

    There is no place for domain layers in my apps: am I out of business?

    So LudovicoVan, you have never created a Business Logic Layer before? I said Domain Layer not model or DDD.

    Tuesday, September 14, 2010 3:51 PM
  • User1444430368 posted

    Cmon guys let's stay on topic, we are not being very helpful here.

    Wednesday, September 15, 2010 4:17 AM
  • User-2004844803 posted

    The user-interface invokes web services

    Have you decided how your user interface is supposed to invoke your web services? directly from the UI or is it being invoked from the code behind in your pages?

    Which architecture  would use for the application

    what part off the architecture is it that you need help with? is it the backend part or is it the UI part? or both?

    Wednesday, September 15, 2010 4:41 AM
  • User-952121411 posted

    Cmon guys let's stay on topic, we are not being very helpful here.
     

    Agreed 100%.  I tried to help in the midst of being attacked personally, but am still waiting for the OP to respond. The original question gave very little detail and my guess is this is an orphaned thread.

    Wednesday, September 15, 2010 9:41 AM
  • User1174454301 posted

    That is what i have some interviewer asked me this questioni dont have more info than this

    Wednesday, September 15, 2010 10:04 AM
  • User-952121411 posted

    Keep up the good work you do Allen and dont spend time on arguing with him about it.
     

    Thank you toas1, I really appreciate the kind comments and will keep pressing forward to contribute on these forums.

    That is what i have some interviewer asked me this questioni dont have more info than this

    I would recommend reading the following book on design patterns to give you a solid foundation for answering questions like this in the future:

    Design Patterns: Elements of Reusable Object-Oriented Software:

    http://www.amazon.com/Design-Patterns-Elements-Reusable-Object-Oriented/dp/0201633612

    ...and here is another recommended read you can download

    Application Architecture for .NET: Designing Applications and Services:

    http://msdn.microsoft.com/en-us/library/Ee817664(pandp.10).aspx

     

    Wednesday, September 15, 2010 10:24 AM
  • User-389939489 posted

    Knowing the right buzzwords and mythology can indeed let you succesfully through most interviews nowadays, who knows anything else after all? Unfortunately, that is the exact opposite of what is proper and effective in production.

    Best luck,

    -LV

    Friday, September 17, 2010 9:44 AM