b4j is incredibly powerful !

tufanv

Expert
Licensed User
Longtime User
Hi guys,

at this moment, I am impressed that b4j is powerful at creating some backend for my applications and websites. I am creating an API which provides crypto currency and financial data to my customers with b4j. in less than 24h , I have setup a webserver and with the help of simple jsongenerator I am providing the json data easily. The work is in still progress but I have 2 informational endpoints ready ( which provides the available pairs and coins only without detailed info ): I am using a simple loadbalancer which directs the requests to 2 different vps with "leastconnections" method..

Informative endpoints:
https://api.freecryptoapi.com/v1/coinlist
https://api.freecryptoapi.com/v1/pairlist

Live Price endpoint:
https://api.freecryptoapi.com/v1/coinlive
Usage:
https://api.freecryptoapi.com/v1/coinlive?coins=BTC+ETH+XRP+ZEN

Until this time, I had to work with PHP which I am not comfortable and apache webservers etc.. This is going to be really fun. I will post the details when I finish the project. I will also make some stress tests on the vps to find out the max number of concurrent connections available.
 
Last edited:

Alexander Stolte

Expert
Licensed User
Longtime User

tufanv

Expert
Licensed User
Longtime User
is this running on port 443 btw 80? Because you dont need a port number behind .com/

v1 is then the handler name right?


and the result i would be interested then. :)
v1 is handler name yes. normally this is running on port 8080 but cloudflare makes a ssl redirect with their own service, it redirects to my loadbalancer and loadbalancer directs it to port 8080 on my vps.

I am having a problem with the pool being unresponsive. If I can fix thşis , I will share the results.
 

tufanv

Expert
Licensed User
Longtime User
do you host your own loadbalancer or from a service? I hear about it for the first time, but I like the technique.
I am hosting my own. It is quite easy with HaProxy. with a single cpu core and a ram, it can handle around 1500-2000 concurrent connections. Of course backend servers are more important.
 

Alexander Stolte

Expert
Licensed User
Longtime User

tufanv

Expert
Licensed User
Longtime User
Top