Polyglot (computing) Polyglot (computing) In computing, a polyglot is a computer program or script written in a valid form of multiple programming languages, which performs the same operations or output independent of the programming language used to compile or interpret it. Generally polyglots are written in a combination of C (which allows redefinition of tokens with a preprocessor) and a scripting language such as Lisp, Perl or sh. Polyglot markup is similar, but about markup language context. Polyglot persistence is similar, but about databases. The two most commonly used techniques for constructing a polyglot program are to make liberal use of languages
Polyglot persistence same concept can be applied to databases, that an application can communicate with different databases, using each for what it is best at to achieve an end goal, hence the term "polyglot persistence". There are numerous databases available to solve different problems. Using a single database to satisfy all of a program's requirements can result in a non-performant, "jack of all trades, master of none" solution. Relational databases, for example, are good at enforcing relationships that exist between various data tables. To discover a relationship or to find data from different tables that belong to the same object, an SQL