SlideShare ist ein Scribd-Unternehmen logo
1 von 13
VIII Call a remoting method.  Call a remoting method asynchronously.  Use events with remote objects.  1. 2. 3. A ) B ) Use a delegate to invoke a remoting method.  1. Check the state of completion and respond.  2. C ) Wire a Client to listen for remote events.  1. Method Invocations and Event Management  with .NET Remoting
Complex to program.  Easy-to-create and deploy.  Ease-of-Programming  Very extensible by allowing us to customize the different components of the .NET remoting framework.  Provides extensibility by allowing us to intercept the SOAP messages during the serialization and de- serialization stages.  Extensibility  Can also take advantage of IIS for fault isolation. If IIS is not used, application needs to provide plumbing for ensuring the reliability of the application.  Highly reliable , since it’s always hosted on IIS. Reliability  Homogenous environment.  Heterogeneous environments.  Interoperability  Using binary communication, .NET Remoting can provide support for rich type system Supports the data types defined in the XSD type system. Type System  Stateful(Singleton), Stateless(SingleCall) Stateless Environment State Management  TCP, HTTP, SMTP & etc HTTP Protocol  .NET Remoting ASP.NET Web Services
A simple 3-tier architecture
An n-tier architecture using ASP.NET
An n-tier  architecture  using Enterprise Services (COM+)
[object Object],2) The developer cannot know at the time of invocation whether or not the method will complete successfully.  3) Remoting methods involve network traffic.  Calling Remote Methods
Stateless Invocation Using One-Way Calls   ,[object Object],[object Object],[object Object],[object Object],The  OneWay  attribute can be used to provide fire and forget functionality.
Remote Methods  -- Synchronous Potential Problems with Synchronous methods 1) Might end in an ERROR.  2) Might complete successfully ,  but take a long time to complete.  3) Waiting for each call to complete individually is potentially wasteful.
Delegates Objects which points towards a function which matches its signature.  Its reference type used to encapsulate a method with a specific signature.  Similar to function pointers in C++.
 
[object Object],[object Object],[object Object],More About Delegates
Asynchronous  An invocation that does not block processing from occurring (an asynchronous call does not block execution of the program while processing occurs). Synchronous A way to call a method that happens sequentially, in the order in which the method was called. If your program calls method A and then calls method B, method B is not called until method A returns. Callback An object that is sent to a method that will notify the caller when processing has completed. One-way Mechanism that allows client-side processing to continue irrespective of anything that happens on the server. Remote method A method that processes on a machine different from the one that called it. Fire and forget Initiating a call to a method and not retrieving any results back from it, even if the method throws an exception.
Asynchronous Invocation IAsyncResult  object  IsCompleted property

Weitere ähnliche Inhalte

Andere mochten auch

Deploy and Publish Web Service
Deploy and Publish Web ServiceDeploy and Publish Web Service
Deploy and Publish Web Service
pradeepfdo
 
Cloud Computing
Cloud ComputingCloud Computing
Cloud Computing
pradeepfdo
 
Flex In Dot Net
Flex In Dot NetFlex In Dot Net
Flex In Dot Net
pradeepfdo
 
Candidate Brochure 2009
Candidate Brochure 2009Candidate Brochure 2009
Candidate Brochure 2009
Alisdair1165
 

Andere mochten auch (9)

F_Sharp#
F_Sharp#F_Sharp#
F_Sharp#
 
Silverlight
SilverlightSilverlight
Silverlight
 
Deploy and Publish Web Service
Deploy and Publish Web ServiceDeploy and Publish Web Service
Deploy and Publish Web Service
 
Cloud Computing
Cloud ComputingCloud Computing
Cloud Computing
 
Flex In Dot Net
Flex In Dot NetFlex In Dot Net
Flex In Dot Net
 
Candidate Brochure 2009
Candidate Brochure 2009Candidate Brochure 2009
Candidate Brochure 2009
 
Uml
UmlUml
Uml
 
Study: The Future of VR, AR and Self-Driving Cars
Study: The Future of VR, AR and Self-Driving CarsStudy: The Future of VR, AR and Self-Driving Cars
Study: The Future of VR, AR and Self-Driving Cars
 
Hype vs. Reality: The AI Explainer
Hype vs. Reality: The AI ExplainerHype vs. Reality: The AI Explainer
Hype vs. Reality: The AI Explainer
 

Ähnlich wie Web Services 8

remote method invocation
remote method invocationremote method invocation
remote method invocation
Ravi Theja
 
Topic2 Understanding Middleware
Topic2 Understanding MiddlewareTopic2 Understanding Middleware
Topic2 Understanding Middleware
sanjoysanyal
 
Design patterns - ICIN 2010
Design patterns - ICIN 2010Design patterns - ICIN 2010
Design patterns - ICIN 2010
steccami
 

Ähnlich wie Web Services 8 (20)

Remoting and serialization
Remoting and serializationRemoting and serialization
Remoting and serialization
 
RMI (Remote Method Invocation)
RMI (Remote Method Invocation)RMI (Remote Method Invocation)
RMI (Remote Method Invocation)
 
remote method invocation
remote method invocationremote method invocation
remote method invocation
 
Distributed System by Pratik Tambekar
Distributed System by Pratik TambekarDistributed System by Pratik Tambekar
Distributed System by Pratik Tambekar
 
Distributed Objects and Remote Invocation
Distributed Objects and Remote InvocationDistributed Objects and Remote Invocation
Distributed Objects and Remote Invocation
 
CHP-4.pptx
CHP-4.pptxCHP-4.pptx
CHP-4.pptx
 
Topic2 Understanding Middleware
Topic2 Understanding MiddlewareTopic2 Understanding Middleware
Topic2 Understanding Middleware
 
CS9222 ADVANCED OPERATING SYSTEMS
CS9222 ADVANCED OPERATING SYSTEMSCS9222 ADVANCED OPERATING SYSTEMS
CS9222 ADVANCED OPERATING SYSTEMS
 
2. Distributed Systems Hardware & Software concepts
2. Distributed Systems Hardware & Software concepts2. Distributed Systems Hardware & Software concepts
2. Distributed Systems Hardware & Software concepts
 
Middleware in Distributed System-RPC,RMI
Middleware in Distributed System-RPC,RMIMiddleware in Distributed System-RPC,RMI
Middleware in Distributed System-RPC,RMI
 
As4301234238
As4301234238As4301234238
As4301234238
 
characteristicsofdistributedsystem-121004123308-phpapp02.ppt
characteristicsofdistributedsystem-121004123308-phpapp02.pptcharacteristicsofdistributedsystem-121004123308-phpapp02.ppt
characteristicsofdistributedsystem-121004123308-phpapp02.ppt
 
DS R16 - UNIT-3.pdf
DS R16 - UNIT-3.pdfDS R16 - UNIT-3.pdf
DS R16 - UNIT-3.pdf
 
Architectural Patterns - Interactive and Event Handling Patterns
Architectural Patterns  - Interactive and Event Handling PatternsArchitectural Patterns  - Interactive and Event Handling Patterns
Architectural Patterns - Interactive and Event Handling Patterns
 
Design patterns - ICIN 2010
Design patterns - ICIN 2010Design patterns - ICIN 2010
Design patterns - ICIN 2010
 
20CS2021 Distributed Computing
20CS2021 Distributed Computing 20CS2021 Distributed Computing
20CS2021 Distributed Computing
 
20CS2021-Distributed Computing module 2
20CS2021-Distributed Computing module 220CS2021-Distributed Computing module 2
20CS2021-Distributed Computing module 2
 
2.communcation in distributed system
2.communcation in distributed system2.communcation in distributed system
2.communcation in distributed system
 
De-virtualizing virtual Function Calls using various Type Analysis Technique...
De-virtualizing virtual Function Calls using various Type  Analysis Technique...De-virtualizing virtual Function Calls using various Type  Analysis Technique...
De-virtualizing virtual Function Calls using various Type Analysis Technique...
 
Session hijacking
Session hijackingSession hijacking
Session hijacking
 

Kürzlich hochgeladen

Future Visions: Predictions to Guide and Time Tech Innovation, Peter Udo Diehl
Future Visions: Predictions to Guide and Time Tech Innovation, Peter Udo DiehlFuture Visions: Predictions to Guide and Time Tech Innovation, Peter Udo Diehl
Future Visions: Predictions to Guide and Time Tech Innovation, Peter Udo Diehl
Peter Udo Diehl
 

Kürzlich hochgeladen (20)

IoT Analytics Company Presentation May 2024
IoT Analytics Company Presentation May 2024IoT Analytics Company Presentation May 2024
IoT Analytics Company Presentation May 2024
 
PLAI - Acceleration Program for Generative A.I. Startups
PLAI - Acceleration Program for Generative A.I. StartupsPLAI - Acceleration Program for Generative A.I. Startups
PLAI - Acceleration Program for Generative A.I. Startups
 
Strategic AI Integration in Engineering Teams
Strategic AI Integration in Engineering TeamsStrategic AI Integration in Engineering Teams
Strategic AI Integration in Engineering Teams
 
Introduction to FDO and How It works Applications _ Richard at FIDO Alliance.pdf
Introduction to FDO and How It works Applications _ Richard at FIDO Alliance.pdfIntroduction to FDO and How It works Applications _ Richard at FIDO Alliance.pdf
Introduction to FDO and How It works Applications _ Richard at FIDO Alliance.pdf
 
Custom Approval Process: A New Perspective, Pavel Hrbacek & Anindya Halder
Custom Approval Process: A New Perspective, Pavel Hrbacek & Anindya HalderCustom Approval Process: A New Perspective, Pavel Hrbacek & Anindya Halder
Custom Approval Process: A New Perspective, Pavel Hrbacek & Anindya Halder
 
Where to Learn More About FDO _ Richard at FIDO Alliance.pdf
Where to Learn More About FDO _ Richard at FIDO Alliance.pdfWhere to Learn More About FDO _ Richard at FIDO Alliance.pdf
Where to Learn More About FDO _ Richard at FIDO Alliance.pdf
 
Salesforce Adoption – Metrics, Methods, and Motivation, Antone Kom
Salesforce Adoption – Metrics, Methods, and Motivation, Antone KomSalesforce Adoption – Metrics, Methods, and Motivation, Antone Kom
Salesforce Adoption – Metrics, Methods, and Motivation, Antone Kom
 
The Value of Certifying Products for FDO _ Paul at FIDO Alliance.pdf
The Value of Certifying Products for FDO _ Paul at FIDO Alliance.pdfThe Value of Certifying Products for FDO _ Paul at FIDO Alliance.pdf
The Value of Certifying Products for FDO _ Paul at FIDO Alliance.pdf
 
Intro in Product Management - Коротко про професію продакт менеджера
Intro in Product Management - Коротко про професію продакт менеджераIntro in Product Management - Коротко про професію продакт менеджера
Intro in Product Management - Коротко про професію продакт менеджера
 
Extensible Python: Robustness through Addition - PyCon 2024
Extensible Python: Robustness through Addition - PyCon 2024Extensible Python: Robustness through Addition - PyCon 2024
Extensible Python: Robustness through Addition - PyCon 2024
 
ECS 2024 Teams Premium - Pretty Secure
ECS 2024   Teams Premium - Pretty SecureECS 2024   Teams Premium - Pretty Secure
ECS 2024 Teams Premium - Pretty Secure
 
Future Visions: Predictions to Guide and Time Tech Innovation, Peter Udo Diehl
Future Visions: Predictions to Guide and Time Tech Innovation, Peter Udo DiehlFuture Visions: Predictions to Guide and Time Tech Innovation, Peter Udo Diehl
Future Visions: Predictions to Guide and Time Tech Innovation, Peter Udo Diehl
 
Integrating Telephony Systems with Salesforce: Insights and Considerations, B...
Integrating Telephony Systems with Salesforce: Insights and Considerations, B...Integrating Telephony Systems with Salesforce: Insights and Considerations, B...
Integrating Telephony Systems with Salesforce: Insights and Considerations, B...
 
ASRock Industrial FDO Solutions in Action for Industrial Edge AI _ Kenny at A...
ASRock Industrial FDO Solutions in Action for Industrial Edge AI _ Kenny at A...ASRock Industrial FDO Solutions in Action for Industrial Edge AI _ Kenny at A...
ASRock Industrial FDO Solutions in Action for Industrial Edge AI _ Kenny at A...
 
AI revolution and Salesforce, Jiří Karpíšek
AI revolution and Salesforce, Jiří KarpíšekAI revolution and Salesforce, Jiří Karpíšek
AI revolution and Salesforce, Jiří Karpíšek
 
How we scaled to 80K users by doing nothing!.pdf
How we scaled to 80K users by doing nothing!.pdfHow we scaled to 80K users by doing nothing!.pdf
How we scaled to 80K users by doing nothing!.pdf
 
The Metaverse: Are We There Yet?
The  Metaverse:    Are   We  There  Yet?The  Metaverse:    Are   We  There  Yet?
The Metaverse: Are We There Yet?
 
Behind the Scenes From the Manager's Chair: Decoding the Secrets of Successfu...
Behind the Scenes From the Manager's Chair: Decoding the Secrets of Successfu...Behind the Scenes From the Manager's Chair: Decoding the Secrets of Successfu...
Behind the Scenes From the Manager's Chair: Decoding the Secrets of Successfu...
 
What's New in Teams Calling, Meetings and Devices April 2024
What's New in Teams Calling, Meetings and Devices April 2024What's New in Teams Calling, Meetings and Devices April 2024
What's New in Teams Calling, Meetings and Devices April 2024
 
Choosing the Right FDO Deployment Model for Your Application _ Geoffrey at In...
Choosing the Right FDO Deployment Model for Your Application _ Geoffrey at In...Choosing the Right FDO Deployment Model for Your Application _ Geoffrey at In...
Choosing the Right FDO Deployment Model for Your Application _ Geoffrey at In...
 

Web Services 8

  • 1. VIII Call a remoting method. Call a remoting method asynchronously. Use events with remote objects. 1. 2. 3. A ) B ) Use a delegate to invoke a remoting method. 1. Check the state of completion and respond. 2. C ) Wire a Client to listen for remote events. 1. Method Invocations and Event Management with .NET Remoting
  • 2. Complex to program. Easy-to-create and deploy. Ease-of-Programming Very extensible by allowing us to customize the different components of the .NET remoting framework. Provides extensibility by allowing us to intercept the SOAP messages during the serialization and de- serialization stages. Extensibility Can also take advantage of IIS for fault isolation. If IIS is not used, application needs to provide plumbing for ensuring the reliability of the application. Highly reliable , since it’s always hosted on IIS. Reliability Homogenous environment. Heterogeneous environments. Interoperability Using binary communication, .NET Remoting can provide support for rich type system Supports the data types defined in the XSD type system. Type System Stateful(Singleton), Stateless(SingleCall) Stateless Environment State Management TCP, HTTP, SMTP & etc HTTP Protocol .NET Remoting ASP.NET Web Services
  • 3. A simple 3-tier architecture
  • 4. An n-tier architecture using ASP.NET
  • 5. An n-tier architecture using Enterprise Services (COM+)
  • 6.
  • 7.
  • 8. Remote Methods -- Synchronous Potential Problems with Synchronous methods 1) Might end in an ERROR. 2) Might complete successfully , but take a long time to complete. 3) Waiting for each call to complete individually is potentially wasteful.
  • 9. Delegates Objects which points towards a function which matches its signature. Its reference type used to encapsulate a method with a specific signature. Similar to function pointers in C++.
  • 10.  
  • 11.
  • 12. Asynchronous An invocation that does not block processing from occurring (an asynchronous call does not block execution of the program while processing occurs). Synchronous A way to call a method that happens sequentially, in the order in which the method was called. If your program calls method A and then calls method B, method B is not called until method A returns. Callback An object that is sent to a method that will notify the caller when processing has completed. One-way Mechanism that allows client-side processing to continue irrespective of anything that happens on the server. Remote method A method that processes on a machine different from the one that called it. Fire and forget Initiating a call to a method and not retrieving any results back from it, even if the method throws an exception.
  • 13. Asynchronous Invocation IAsyncResult object IsCompleted property