Port drivers

Sebastian Bello <>
Fri Jun 16 15:51:57 CEST 2006


Danie,

> I may misunderstand but just to clarify
> port driver = linked in driver
> port = the erl_interface stdin stdout type communication
Yes, that's what I meant.

> 5.  We have the same thing, the attached code is sybase linked in drivers,
and
> each one makes a connection to the database.  We run about 50 of these
> drivers simultaneously.  The answer might also lie in what you do with the
> driver.
I'm trying something similar, each driver would start an ODBC connection. I
have a working TCP version (instead of port driver), but hope to gain
performance using a port driver.

Thanks for your reply and code!
    Sebastian-

----- Original Message ----- 
From: "Danie Schutte" <>
To: "Sebastian Bello" <>
Cc: "Erlang Questions" <>
Sent: Friday, June 16, 2006 10:27 AM
Subject: Re: Port drivers


> I may misunderstand but just to clarify
> port driver = linked in driver
> port = the erl_interface stdin stdout type communication
>
> 1.  Linked in drivers, use binaries to send data, we experienced a 270%
> performance increase over our traditional port interface.  Side effect -
if
> something goes wrong :) it goes wrong spectacularly (but this rarely
> happened)
> 2.  Significantly faster
> 3.  no windows :)
> 4.  Attached to this mail is some sample (production driver) code.
> 5.  We have the same thing, the attached code is sybase linked in drivers,
and
> each one makes a connection to the database.  We run about 50 of these
> drivers simultaneously.  The answer might also lie in what you do with the
> driver.
>
>
>
> On Friday 16 June 2006 14:44, Sebastian Bello wrote:
> > Hello list,
> >
> > a few questions regarding port drivers:
> >
> > 1- when should a port driver be used instead of a port?
> > 2- is a port driver faster than a port?
> > 3- is it easy/possible to debug a port driver under Windows?
> > 4- has anybody written an MFC based dll as a port driver? Is there any
> > sample code available? 5- when having to deal with a big number of
requests
> > for a port driver, may it be possible/desirable to start multiple port
> > drivers to handle them?
> >
> > Thanks,
> >     Sebastian-
>
> -- 
> Managing Director
> Erlang Financial Systems (Pty) Ltd
>
> Mobile: +27 84 468 3138
> Phone : +11 235 6500 ext 6801
> Fax   : +11 235 6690
>
>
> __________ Informacin de NOD32, revisi n 1.1602 (20060616) __________
>
> Este mensaje ha sido analizado con  NOD32 antivirus system
> http://www.nod32.com
>
>




More information about the erlang-questions mailing list