B4J Question B4J Web Server RDC vs PHP...

Cableguy

Expert
Licensed User
Longtime User
Hi guys...

I've just set up my vps, and thus decided its time to dig into that misterious world of RDC and databases...

So, from what I could gather, I have two choices...

  1. RDC
  2. PHP
The first implies running an extra server that will listen to incoming requests, the second is somewhat more limited in its capabilities... (please correct me if needed...)

So for a completely novice in this kind of stuff, I need you to help me help myself...
 

Erel

B4X founder
Staff member
Licensed User
Longtime User
Based on your description it sounds like you have implemented something similar to RDC. RDC is useful if you want to connect clients to a remote database.
You just need to set the SQL commands in the configuration file and it will work.

There is nothing wrong with using a different or custom implementation (or if you want to reinvent the wheel ;) ). Use whichever tool you like...
 
Upvote 0

Erel

B4X founder
Staff member
Licensed User
Longtime User
Upvote 0

udg

Expert
Licensed User
Longtime User
Thanks Erel. The only problem suffered so far was the DB disconnection due to inactivity, solved following your indication to use ConnectionPool.
I really hoped in a good excuse to start experimenting with RDC.. ok, I'll find something else to play with in Xmas days!
No, it's not time yet to unwrap B4i :)

UPDT: I should have waited a couple of minutes more before posting..eheh
 
Upvote 0

keirS

Well-Known Member
Licensed User
Longtime User
I think the best solution depends on what you want to achieve. RDC is good if you are able to keep all your code within the B4X environment. If however you want your server to support multiple clients using different platforms then a bespoke approach implementing restful web services and using JSON (for example) is a better approach.
 
Upvote 0

Erel

B4X founder
Staff member
Licensed User
Longtime User
If however you want your server to support multiple clients using different platforms then a bespoke approach implementing restful web services and using JSON (for example) is a better approach.
RDC (jRDC2) is a regular web server implemented with B4J. If you want to support non-B4X clients then you can easily extend it and use JSON or whichever format you like.

The thread title is a bit confusing. It should have been B4J web server vs PHP.
 
Upvote 0

Harris

Expert
Licensed User
Longtime User
RDC (jRDC2) is a regular web server implemented with B4J. If you want to support non-B4X clients then you can easily extend it and use JSON or whichever format you like.

The thread title is a bit confusing. It should have been B4J web server vs PHP.
I think I need to update my project to jRDC2. Just need to find the time and inspiration. It works fine with original RDC from B4A. Why fix what isn't broke?
I see the benefits... If only I could clone myself to help out - like Erel has (somehow)...
 
Upvote 0
Top