asp.net - What's the best way to structure this kind of remote service? -
I'm not sure whether this is a web service technically or not, but I have a flash file, Round trip for one DB on time As it stands, AS3 uses the URL loader class to exchange XML with ASP.NET / VB file on the server. The ASPX code then goes to DB and gives returns that requests back to the flash file.
As my program grows and I need to implement a huge variety of tasks on the server, I am thinking that I should put functions in the same PSP file and specify in AS3 Which one should I load for a given task, or is it better to break my functionality into several different ASPX files and call the appropriate file for work?
Do I have some clear professional and bad ideas about the method that I should consider?
(Note: I have put all VB functions on the ASPX pages instead of the code behind the files because I had a problem accessing the I / O stream from the back code.)
> Thank you.
When you are saying that you have a large code It should think about breaking the diversity of tasks, although this question can not be answered normally and the solution is always specific to the problem, which can be helpful:
All in the server code Reason for placing the code in one file:
- The code depends on each other for different tasks
- Attempts to separate tasks into files are very high
- Variety of variations / calculations are manageable
- You are the only developer < Li> Every task does the right thing and fails (since they are all in a file i believe a mistake that all tasks will be broken)
Reasons < Li> The file is going to be very large, unreadable and unmanageable
That's all I can think of right now. You will definitely get more reason for yourself as I said that I will separate the work as I feel that the effort is not too much.
Comments
Post a Comment