FB embedded cons vs pros

78 views
Skip to first unread message

Hugo Larson

unread,
Oct 29, 2022, 2:21:27 PM10/29/22
to Firebird-support
Hello,

What are the cons and pros of running FB in embedded mode on a server where all connections are localhost?
Are there limitations? I read that embedded mode can handle multiple connections.

Thanks,
Hugo

Steve Naidamast

unread,
Oct 29, 2022, 3:16:09 PM10/29/22
to firebird-support
I don't know why you would want to run a Firebird Server in "embedded" mode.  This mode is used for databases local to an application that can also be distributed with it.

Steve Naidamast
Sr. Software Engineer

Mark Rotteveel

unread,
Oct 30, 2022, 4:36:20 AM10/30/22
to firebird...@googlegroups.com
Firebird Embedded cannot accept remote connections, it can only accept
in-process connections (that is, only within the application). Within an
application you can create multiple connections to the database. If you
want multiple applications to connect to the same database, you need to
ensure that the server mode is configured appropriately
(ThreadedShared), and that all applications have access to the shared
lock directory and its files.

The following is my opinion, and might miss some things

Cons of embedded:
* No user authentication
* Filesystem level access to the database is required for the database
* (possibly) higher chance of corruption, if applications are
killed/terminated incorrectly
* Harder/impossible to use additional tools on the database if
server-mode is configured wrong (this applies both to the app config, as
the tool config), or if tools expect to use a TCP/IP connection

Pros of embedded:
* No server running
* No user authentication (yes, I'm listing it as both a con and a pro)
* Slightly faster than TCP/IP over localhost

Mark
--
Mark Rotteveel

Dimitry Sibiryakov

unread,
Oct 30, 2022, 4:43:19 AM10/30/22
to firebird...@googlegroups.com
Mark Rotteveel wrote 30.10.2022 9:36:
> Cons of embedded:
> * No user authentication
> * Filesystem level access to the database is required for the database
> * (possibly) higher chance of corruption, if applications are killed/terminated
> incorrectly
> * Harder/impossible to use additional tools on the database if server-mode is
> configured wrong (this applies both to the app config, as the tool config), or
> if tools expect to use a TCP/IP connection

* Slighty slower that TCP/IP over localhost (yes, particularly fetch because
of no server buffering)

> Pros of embedded:
> * No server running
> * No user authentication (yes, I'm listing it as both a con and a pro)
> * Slightly faster than TCP/IP over localhost


--
WBR, SD.

Hugo Larson

unread,
Oct 31, 2022, 6:55:27 AM10/31/22
to firebird...@googlegroups.com
Thanks Mark.

--
You received this message because you are subscribed to the Google Groups "firebird-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firebird-support+unsub...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages