You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@mina.apache.org by Cassiano Alves <ca...@gmail.com> on 2008/05/23 16:16:54 UTC
Financial authorization server using mina
Hi everybody!
I'm a Java and C developer working to a financial company.
I'm working on a project of a Financial Authorization Server.
We had the suggestion to use Mina framework insted of using C/C++ socket
api.
But we still have concerns about performance of a Java environment compared
to a C/C++ one.
We expect to receive about 200 requests per second using ISO8583 protocol.
Does anybody know about some case like that?
Is there some benchmark comparing Mina and C/C++ ?
Regards,
Cassiano Alves
Re: Financial authorization server using mina
Posted by Emmanuel Lecharny <el...@gmail.com>.
Hi !
On Fri, May 23, 2008 at 4:16 PM, Cassiano Alves
<ca...@gmail.com> wrote:
> Hi everybody!
>
> I'm a Java and C developer working to a financial company.
> I'm working on a project of a Financial Authorization Server.
> We had the suggestion to use Mina framework insted of using C/C++ socket
> api.
That's a good suggestion :)
> But we still have concerns about performance of a Java environment compared
> to a C/C++ one.
Well, java has gone a long way since 1996 ... Consider that network
latency will in any case be order of magnitude more important than any
of the C/Java difference you will see (if any). Modern JVM run as fast
as C code, if you consider memory management you have to add into your
C code.
>
> We expect to receive about 200 requests per second using ISO8583 protocol.
I have no idea about the length and complexity of a ISO8583 message,
but I can tell you that Apache Directory Server is written on tp of
MINA (it's a LDAP server), and can deal with 5 000 requests per
second.
I guess that with a correctly written ISO8583 decoder, on a fast
computer, you should be able to reach those 200 req/s easily.
>
> Is there some benchmark comparing Mina and C/C++ ?
MINA is a framework, C/C++ is a language. You can't compare apple and oranges ;)
Hope it helps !
--
Regards,
Cordialement,
Emmanuel Lécharny
www.iktek.com
Re: Financial authorization server using mina
Posted by Daniel Wirtz <da...@virtunity.com>.
On Fri, May 23, 2008 at 4:16 PM, Cassiano Alves <ca...@gmail.com>
wrote:
> Does anybody know about some case like that?
> Is there some benchmark comparing Mina and C/C++ ?
>
Yes, there is a benchmark of Mina compared to Apache 2.0.52 (which is
written in C/C++) in a very simple http environment available on the Mina
project site (http://mina.apache.org/performance-test-reports.html).
However, in a real world environment, you may experience that Java is a
little bit slower than a highly optimized C/C++ application, but development
and maintainance is much more joy with Java. Because of this, a more
efficient application design is possible that can outperform a C/C++
solution in the long term also from a performance perspective. You should
also take into account, that Java applications are not vulnerable for the
most common c/c++ exploits like buffer overflows and so on.
regards
Daniel