Session 6

248 views

Published on

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
248
On SlideShare
0
From Embeds
0
Number of Embeds
2
Actions
Shares
0
Downloads
8
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Session 6

  1. 1. Session 6 .NET Remoting
  2. 2. Session Objectives <ul><li>Discuss .NET Remoting </li></ul><ul><li>Explain the need for .NET Remoting </li></ul><ul><li>Discuss the .NET Remoting </li></ul><ul><li>Architecture </li></ul><ul><li>Explain Channels </li></ul><ul><li>Build simple clients and server </li></ul>
  3. 3. Scale-up strategy
  4. 4. Scale-out strategy
  5. 5. Scale-Out Strategy <ul><li>Advantages – </li></ul><ul><ul><li>No need to replace the entire system, just add new hardware </li></ul></ul><ul><ul><li>More fault tolerant systems </li></ul></ul><ul><li>Disadvantages – </li></ul><ul><ul><li>For extra modules purchase of new hardware needed </li></ul></ul><ul><ul><li>The network was needed to be owned by the business </li></ul></ul>
  6. 6. Distributed Computing <ul><li>Application of Vendor A interacting with the applications of Vendor B </li></ul>
  7. 7. Distributed Computing <ul><li>Technologies like DCOM & CORBA failed in their attempt to enable interaction between applications </li></ul><ul><li>.NET Remoting offers seamless interaction using XML & SOAP </li></ul>
  8. 8. .NET Remoting <ul><li>Saves developers’ time and effort in coding </li></ul><ul><li>Provides developers’ with a framework that allows objects to interact with one another across application domains </li></ul><ul><li>The application domain can be on the same physical system or over a network </li></ul>
  9. 9. .NET Remoting Terminologies <ul><li>Remote Object </li></ul><ul><li>Formatter </li></ul><ul><li>Formatter provider </li></ul><ul><li>Channel </li></ul><ul><li>Message </li></ul><ul><li>Proxy </li></ul><ul><li>Message Sink </li></ul><ul><li>Activator </li></ul><ul><li>RemotingConfiguration </li></ul><ul><li>ChannelServices </li></ul>
  10. 10. Putting the things together <ul><li>Proxy is a local object, which is an image of a remote object </li></ul>
  11. 11. Deserialization of a message on the server side
  12. 12. Building a simple client & server -1 <ul><li>Example 1 - </li></ul>
  13. 13. Building a simple client & server -2 <ul><li>Example 2 - </li></ul>
  14. 14. Building a simple client & server -3 <ul><li>Example 3 - </li></ul>
  15. 15. Building a simple client & server -4 <ul><li>Output after starting the server in example 2 and executing example 3 - </li></ul>
  16. 16. HTTP implementation of Example 2 <ul><li>Example 4 - </li></ul>
  17. 17. HTTP implementation of Example 3 <ul><li>Example 5 - </li></ul>

×