Of course, there's a lot more to it than that, like creating a valid URL, preparing the data, error checking, etc., etc. The main functions I used for the core functionality of making the calls were: I haven't finished it, because I needed to rebuild the target system and modify the database structure, and I haven't gotten around to completing that yet, but what I have works so far. I started doing that with two small systems I maintain, where one tells the other to create, modify, and/or delete email accounts and aliases. I think probably the easiest, most universal way of doing that is to create a REST API on the target system, requiring some sort of unique key for authentication, and utilize it on the source system. If people, including myself are keen to explore creating bridge modules then knowing the different hooks and functions we should be using to get logins and sessions in a secure way would be helpful. There are different levels of bridge, some including MRBS, just share users and session, others like CiviCRM have much closer. I do think that the range of integrations we can support could be an important strand to our outreach and marketing. MRBS has integrations for users to Wordpress and joomla it used to have an integration with Drupal7 but it was shut down as it wasn't secure enough. I created a post about what is needed for integrating MRBS - a very powerful and user friendly room (and other resource) booking solution that also works well on mobile but didn't get very far. Integrations to other systems will be particularly important for small businesses and small non profits as they try to piece together the functionality needed. Yes, it needs development in the other system also, but clear direction on what needs to be included for a secure bridge would be a good idea. I think it would be good to have some advice about the general approach to creating a bridge for other systems. Some of them might exist as Drupal 7 modules that could be converted (ported) for use in Backdrop, and they would be quicker & easier to get working on Backdrop than something that doesn't yet exist.Īlso, the module DrAlbany mentioned was in his post It is a Drupal 7 module, but that could probably be moved to Backdrop fairly quickly & easily. It would be far more helpful if you told us exactly which large & popular stand alone programs you actually use, so we could point to you what already exists and tell you how easy or difficult it would be to create the bridge for the specific programs you use. (There could be, but that would require all developers of all those programs to come to a consensus about the API and for all of them to use it, and that hasn't happened). Not all of them have any sort of connecting bridge (API), but most, if not all, of those that do, have different APIs from each other, so there is not really a one-size-fits-all API connection from one software to another. When called from a command line, PHP scripts aren't affected by the time limit.įor example, you can configure this JSON download as a cron job, or implement some queue, when your web-page only creates a job, that takes a fraction of second, while some background process will take time to download, parse and store your JSON.In general, there are quite a few large and popular stand alone programs. In case the code is already optimized but inevitably takes too much time, consider execute it not as a web-page call but as a command line script. Profile your code, find performance bottlenecks and optimize them. Or, given you are storing the received data in the database, there are techniques that can greatly improve the performance, such as using transactions or multi-insert queries. Obviously, in this case increasing the execution time won't help. You need to optimize your code and look for errors.įor example, you could mistakenly create an endless loop.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |