.Net remoting singleton class Issue

Hey,

We have a website that is in asp and the website basically encrypts the credit card info and then through remoting the information is passed to a different server where it gets decrypted before reaching mainframe. We have used Singleton class for decryption for better performance but it looks like the decryption process fails once in a while when multiple web requests tries to access the decrypt what I mean is as the load is increased the decryption fails.

How can I resolve this issue. Any help will be appreciated.

Thanks in advance.




Answer this question

.Net remoting singleton class Issue

  • Thomas Pagel

    Remoting doesn't do any locking for you, even if it is a singleton, so it is possible that you are seeing threading issues here.

    You can either ensure that you are locking where required or you move to Single-Call.

    Depending on what you are doing this may make single-call faster than a thread-safe singleton.


  • .Net remoting singleton class Issue