Comments on: Implementing Failover and Load Balancing in DataSnap 2010 http://www.andreanolanusse.com/en/implementing-failover-and-load-balancing-in-datasnap-2010/ Where Andreano Lanusse talk about technology, software development, programming techniques, databases, games and more through articles, tutorials and videos Thu, 07 Mar 2013 09:15:42 +0000 hourly 1 https://wordpress.org/?v=6.7.4 By: rio alamanda http://www.andreanolanusse.com/en/implementing-failover-and-load-balancing-in-datasnap-2010/#comment-11409 Thu, 07 Mar 2013 09:15:42 +0000 http://www.andreanolanusse.com/en/?p=292#comment-11409 I’ve tried using the example code delphi based client themselves, the results can run and tunneling can work well. when I create a client application using php, tunneling can not work, the parameters that are sent do not continue to use the unchanged get a DataSnap / tunnel, and there is a 500 internal server error message. Can you give an example of accessing using php so that tunneling can run as well as the client made ​​with delphi?

]]>
By: Walter http://www.andreanolanusse.com/en/implementing-failover-and-load-balancing-in-datasnap-2010/#comment-10943 Fri, 13 Jul 2012 13:38:37 +0000 http://www.andreanolanusse.com/en/?p=292#comment-10943 Andreano, I was already able to solve my problem, the only change was to remove CloseBackupSession from ErrorWriteBackupSession and ErrorReadBackupSession, because the saved TBytesStream still needs to be used. And of course, don’t using the UserFlag to mark that it already was redirected.

]]>
By: Andreano Lanusse http://www.andreanolanusse.com/en/implementing-failover-and-load-balancing-in-datasnap-2010/#comment-10938 Wed, 27 Jun 2012 01:23:10 +0000 http://www.andreanolanusse.com/en/?p=292#comment-10938 In reply to Chales.

Hi Chales,

On the Load Balance/Failover Server no, because this feature happen through the HTTP Tunneling, on the other side the connection from this server to the DataSnap Servers can be done through TCP/IP

]]>
By: Chales http://www.andreanolanusse.com/en/implementing-failover-and-load-balancing-in-datasnap-2010/#comment-10937 Tue, 26 Jun 2012 21:42:40 +0000 http://www.andreanolanusse.com/en/?p=292#comment-10937 Hi Andreano

Is there any way to get Failover & Load Balancing to working on a Tcp/Ip connection ?

Thanks

]]>
By: Andreano Lanusse http://www.andreanolanusse.com/en/implementing-failover-and-load-balancing-in-datasnap-2010/#comment-8309 Mon, 06 Jun 2011 04:17:46 +0000 http://www.andreanolanusse.com/en/?p=292#comment-8309 In reply to Mirko.

Hi Mirko,

1) I would implement some mechanism on the server to verify if the server is back

2) This is just a demo, you can change the code and switch many times you want to.

3) The Delphi documentation describe the DataSnap HTTP Tunneling, if you wanna something specific about load balancing I would recommend google 🙂

]]>
By: Mirko http://www.andreanolanusse.com/en/implementing-failover-and-load-balancing-in-datasnap-2010/#comment-8291 Sat, 04 Jun 2011 16:45:40 +0000 http://www.andreanolanusse.com/en/?p=292#comment-8291 Hi Andreano, some questions:

1) how would you implement the case when the “Primary” server comes back on and it has to receive the requests again?

2) why is not possible to switch more tha once?

3) is there somewhere a code/tutorial/article that describes load balancing?

BR
Mirko

]]>
By: Andreano Lanusse http://www.andreanolanusse.com/en/implementing-failover-and-load-balancing-in-datasnap-2010/#comment-7358 Tue, 29 Mar 2011 00:32:08 +0000 http://www.andreanolanusse.com/en/?p=292#comment-7358 In reply to Lena.

Hi @Lena,

Yes, but will need sometime for that, I’m very busy here 🙂

]]>
By: Andreano Lanusse http://www.andreanolanusse.com/en/implementing-failover-and-load-balancing-in-datasnap-2010/#comment-7249 Mon, 21 Mar 2011 17:39:49 +0000 http://www.andreanolanusse.com/en/?p=292#comment-7249 In reply to Vlad.

Hi Vlad,

It’s because the authentication component in XE changed, just drop the DSAuthenticationManager component and set the AuthenticationManager property and onAuthenticate event for the HTTPService component. It will work.

]]>
By: Lena http://www.andreanolanusse.com/en/implementing-failover-and-load-balancing-in-datasnap-2010/#comment-7242 Mon, 21 Mar 2011 11:06:40 +0000 http://www.andreanolanusse.com/en/?p=292#comment-7242 Dear Andreano Lanusse.
Can you translate your example code of Failover on C++ language (C++ Builder XE).
Thank you.

]]>
By: Vlad http://www.andreanolanusse.com/en/implementing-failover-and-load-balancing-in-datasnap-2010/#comment-7240 Mon, 21 Mar 2011 10:45:55 +0000 http://www.andreanolanusse.com/en/?p=292#comment-7240 When I try start example Failover (FailoverDemo.groupproj) in RAD XE I got message class TDSHTTServiceAuthenticationMahager not found

]]>
By: Andreano Lanusse http://www.andreanolanusse.com/en/implementing-failover-and-load-balancing-in-datasnap-2010/#comment-4979 Thu, 02 Dec 2010 08:21:23 +0000 http://www.andreanolanusse.com/en/?p=292#comment-4979 In reply to Iwan.

Hi Iwan,

You can use, but in case you need to redirect the connection and the server method need to notify the client, it will fail, so you will need to re-execute the server method.

]]>
By: Iwan http://www.andreanolanusse.com/en/implementing-failover-and-load-balancing-in-datasnap-2010/#comment-4739 Sat, 20 Nov 2010 04:14:31 +0000 http://www.andreanolanusse.com/en/?p=292#comment-4739 Hi, i’m want to know, whether the Delphi XE heavyweight callback can be used with redundant connection like fail over or load balancing.
And how to use them? Thanks.

]]>
By: Les http://www.andreanolanusse.com/en/implementing-failover-and-load-balancing-in-datasnap-2010/#comment-3030 Wed, 02 Jun 2010 20:05:46 +0000 http://www.andreanolanusse.com/en/?p=292#comment-3030 There’s a saying that the definition of insanity is doing the same thing a second time and expecting different results. I guess I will have to re-examine that idea. It’s there now. Thanks for the help.

]]>
By: Andreano Lanusse http://www.andreanolanusse.com/en/implementing-failover-and-load-balancing-in-datasnap-2010/#comment-3029 Wed, 02 Jun 2010 19:48:22 +0000 http://www.andreanolanusse.com/en/?p=292#comment-3029 In reply to Les.

Les,

Please, download again the zip file and you will see the failover folder.

]]>
By: Les http://www.andreanolanusse.com/en/implementing-failover-and-load-balancing-in-datasnap-2010/#comment-3028 Wed, 02 Jun 2010 19:44:16 +0000 http://www.andreanolanusse.com/en/?p=292#comment-3028 I downloaded item 27391 from the link below your very helpful video that says “You can download the source code here.” The folders in the zip are ASPNETClient, ASPNTCLIENT – Delphi Prism 2010, ASPNTCLIENT – Delphi Prism 2011, Client, DSFilterEncrypt, HTTP, Output, SendRecFiles and Server. Doing a search in the resultant directory for the word “failover” results in only the zip file name: 27391_datasnap_2010_failover_samples.zip. I don’t think I could be overlooking it.

]]>
By: Andreano Lanusse http://www.andreanolanusse.com/en/implementing-failover-and-load-balancing-in-datasnap-2010/#comment-2980 Fri, 28 May 2010 16:09:00 +0000 http://www.andreanolanusse.com/en/?p=292#comment-2980 Les, it’s, download the zip file and check the Failover folder

]]>
By: Les http://www.andreanolanusse.com/en/implementing-failover-and-load-balancing-in-datasnap-2010/#comment-2962 Wed, 26 May 2010 12:39:07 +0000 http://www.andreanolanusse.com/en/?p=292#comment-2962 The source code doesn’t seem to have the failover demo included.

]]>
By: Andreano Lanusse http://www.andreanolanusse.com/en/implementing-failover-and-load-balancing-in-datasnap-2010/#comment-2639 Sun, 11 Apr 2010 21:54:11 +0000 http://www.andreanolanusse.com/en/?p=292#comment-2639 Hola Salvador, gracias por publicar en tu blog.

Yo voy traducir los posts y vídeos sobre DataSnap al español, solamente falta tiempo 🙂

Creo que mas algunos días ya tendré algunos listos.

Saludos,
Andreano

]]>
By: salvador jover http://www.andreanolanusse.com/en/implementing-failover-and-load-balancing-in-datasnap-2010/#comment-2638 Sun, 11 Apr 2010 21:02:45 +0000 http://www.andreanolanusse.com/en/?p=292#comment-2638 Estimado Andreano Lanusse:

Muy útil y bueno el articulo y el vídeo, y lo he resaltado en mi blog porque el área de datasnap me parece muy importante dentro de nuestros desarrollos como programadores.

Pero al hilo de esto quería dejarte un comentario:

Recientemente ha sido añadida por youtube una funcionalidad que permite que los vídeos sean subtitulados y traducidos de forma automática, sin que suponga una carga adicional para las personas que los editan. Esta nueva funcionalidad puede ayudar mucho a la comunidad hispana ya que aunque no sea la traducción 100 % perfecta con el tiempo se ira mejorando.

En el caso de tu video también he visto que esta disponible esta funcionalidad desde youtube, lo he estado probando por saber si era algo que pudiera ser aprovechado por la comunidad hispana, pero el problema es que no detecta correctamente el audio en ingles y el subtitulo que crea en ingles no tiene nada que ver con lo que dices. Y por lo tanto, si lo traduces a otro idioma mucho menos.

Te hago el comentario porque dicen que es relativamente fácil el ajuste de la captura de audio, es decir, modificar el texto que ha sido capturado en el vídeo, por el autor para que el subtitulo se muestre correcto y pueda ser traducido correctamente. Y quizás así pueda llegar a mas personas dentro de la comunidad hispana.

Atentamente, le envío un saludo,

Salvador

]]>