![]() It means you can use ejabberd shell using Elixir interactive commands: $ cd $HOME/my-ejabberd/ – iexdebug: Attach and Elixir console to an already running ejabberd – iexlive: Start ejabberd and keep an Elixir command open Object file: /Users/mremond/my-ejabberd/lib/ejabberd/ebin/Įjabberdctl module has now extra options: Module 'Elixir.Enum' compiled: Date: January 24 2015, Time: 16.27 Your ejabberd is now Elixir-enabled: $ cd $HOME/my-ejabberd/ configure -prefix=$HOME/my-ejabberd -enable-elixir Install Erlang R17 git clone and build ejabberd with Elixir support $ git clone cd ejabberd The change are available in ejabberd master branch and will be integrated in next ejabberd official version. Here is how to start using Elixir in ejabberd today. If you do not yet know Elixir, you now have the best reason of the world to learn it :) It is inspired by Ruby syntax, with all the benefit of Erlang VM, that is clustering, lightweight processes, robustness, fault tolerance, etc. For those who do not know about Elixir: This is a clean, modern programming language, created by Jose Valim, supported by hundreds of enthousiastic developers. In turn, we are hoping to do for Elixir, what ejabberd did for Erlang in terms of recognition. This change is probably the most important change in the life of ejabberd and we are already working with Elixir developer to improve on this existing implementation and boost our development community by making ejabberd development more accessible. You can now develop any module you want in ejabberd leveraging all ejabberd API using only Elixir language.įor those who already know about Elixir, I already hear the excitement that this new feature is generating. Today, we are getting further and are making Elixir language a first class citizen for ejabberd. So, YAML configuration files format was received as a relief by many users. YAML format is quite well know and avoided the typical mistakes make by users when editing “Erlang We already made the life of ejabberd users easier by providing YAML syntax for configuration files. ![]() Some people hate the syntax and cannot overcome their relunctance to learn it. “ejabberd is the main reason why I have learned Erlang”. When I talk to many of the developers that have learned Erlang in that past 10 years, they often thank us for ejabberd. Then a created a configuration like this in /var/lib/prosody/ has always been a key project for Erlang. For Debian the package prosody-migrator-0.11 needed to be installed. Prosody provides the prosody-migrator tool for that. To be able to use this tool, I first needed to convert my Prosody SQL backend to a file based backend. There’s an Ejabberd feature import_prosody that takes Prosody file storage data and transfers it into Ejabberd’s data backend. Converting data from PostgreSQL backend to file backend Testing with Īs soon as I was happy with the test results I checked how I could transfer Prosody user data to Ejabberd. How I did itįirst set up a demo server on a different domain to check if Ejabberd satisfies my requirements (mainly supporting all Conversations features). As I personally like PostgreSQL and consider it a very reliable and great performing database system, I decided to use it for my new Ejabberd instance, too. Prosody was running with the PostgreSQL backend, because MySQL turned out to perform not good enough for that big amount of users (>8,000 registered, ~2,000 active). For a public service, I feel better using Ejabberd as a more “enterprisy” solution. I’d suggest to use Prosody for home / private use, because usually it is easy to handle. When developing, the provider refers to it instead of Prosodyĭon’t get me wrong: I still consider Prosody a good XMPP server - but maybe it’s just not made for big servers like mine.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |