Uploaded image for project: 'Help-Desk'
  1. Help-Desk
  2. HELP-5791

FIWARE.Request.Tech.Data.OrionContextBroker.Re: New Orion Context Broker Release (0.27.0)

    Details

    • Type: extRequest
    • Status: Closed
    • Priority: Major
    • Resolution: Done
    • Fix Version/s: 2021
    • Component/s: FIWARE-TECH-HELP
    • Labels:
      None

      Description

      It is not fair to cut-off XML which is quite wide spread way of exchange of
      information.

      DD

      _____

      From: no-reply@account.lab.fiware.org
      no-reply@account.lab.fiware.org
      Sent: Monday, February 01, 2016 12:51 PM
      Subject: [FIWARE Lab] New Orion Context Broker Release (0.27.0)

      FIWARE-Lab
      <https://account.lab.fiware.org/static/dashboard/img/mail/header-mail.png>

      Dear FIWARE Lab user,

      This announcement is about Orion Context Broker. If you are not using this
      component you can safely ignore this message.

      A new Orion Context Broker release (0.27.0) has just been released,
      corresponding to the FIWARE Sprint 5.2.1. Detailed changelog for this new
      version can be found at
      https://github.com/telefonicaid/fiware-orion/releases/tag/0.27.0

      For users of standalone Orion instances (i.e. Orion running in your own
      virtual machine), you can update to the new version running (as root or
      using sudo): "yum install contextBroker". Sometimes yum doesn't detect the
      new version, in which case you have to run "yum clean all" before that.

      For users of the global instance at orion.lab.fiware.org, the change to
      0.27.0 has been already done. Note that if you use the global instance you
      are agreeing in the Acceptable Usage Policy associated to it
      (https://forge.fiware.or
      g/plugins/mediawiki/wiki/fiware/index.php/FIWARE_Lab_Orion_Context_Broker_Gl
      obal_Instance_Acceptable_Usage_Policy).

      If you are going to use this new version (highly recommended), please review
      the manuals at http://fiware-orion.readthedocs.org/en/0.27.0.

      This is the next-to-last version which includes XML support (deprecated
      since 0.23.0), i.e. next version (0.28.0, to be released by the end of
      February) will be the last one including XML support. If you are still using
      XML clients or notification receivers, you are highly encorauged to migrate
      to JSON (details in the documentation).

      For any doubt related with this announcement, please send an email to
      fiware-lab-help@lists.fiware.org mailing list.

      Best regards,

      ------
      FIWARE Lab Staff


      You are receiving this message because you are a registered FIWARE Lab user
      <https://account.lab.fiware.org> . Should you wish to remove your account,
      you need to follow four simple steps:

      1. Log on FIWARE Lab user <https://account.lab.fiware.org>

      2. Click on the dropdown menu next to your user name (upper right
      corner)

      3. Select "Settings"

      4. Click on "Cancel account" and confirm.

      2015 C FIWARE <http://www.fiware.org/> .

      Since January 1st, old domains won't be supported and messages sent to any domain different to @lists.fiware.org will be lost.
      Please, send your messages using the new domain (Fiware-lab-help@lists.fiware.org) instead of the old one.
      _______________________________________________
      Fiware-lab-help mailing list
      Fiware-lab-help@lists.fiware.org
      https://lists.fiware.org/listinfo/fiware-lab-help
      [Created via e-mail received from: "Dr. Dragomir D. Dimitrijevic" <dragomir@dragomirdimitrijevic.rs>]

        Activity

        Hide
        fermin Fermín Galán added a comment -

        Hi,

        The motivation for removing XML from Orion API is due to the feedback gathered during years in many FIWARE events with developers (Campus Party, Developers week, FIWARE hackathons, etc.): it is a fact that developer community prefers JSON in REST API instead of XML. In fact, the next version of NGSIv2 will be entirely based on JSON.

        Note that although XML could be quite wide spread in many domains, modern REST APIs are based on JSON given the adventages it brings to developers generating/consuming that format (e.g. easiness in client languages such as JavaScript or Python). For example, GitHub API (https://developer.github.com/v3/), JIRA (https://developer.atlassian.com/jiradev/jira-apis/jira-rest-apis/jira-rest-api-tutorials/jira-rest-api-version-2-tutorial#JIRARESTAPIVersion2Tutorial-IntroductiontoJIRA%27sRESTAPI) and many others.

        Thus, maintaining both XML and JSON at the same time in the current API is a severe burden in development and documentation tasks for the Orion team, without an actual gain. Therefore, we have decided to remove XML support from Orion Context Broker in the near future. The plan is that the version corresponding to February sprint (i.e. Orion 0.28.0) will be the last one supporting XML. JSON support (either NGSIv1 or NGSIv2) will remain.

        Although we stopped to talk about Orion XML API in public presentations, talks, etc. time ago (even before XML was "official" deprecated in 0.23.0) we understand that some old systems are still using XML. For these cases, there are 3 options:

        • Migrate client/receiver/cpr API to NGSIv2 JSON. Probably the best option if you want to take the most of the newer NGSIv2 API (e.g. subscription filters, etc.). However, note that NGSIv2 is yet in "beta" status, with some areas not fully specified and others in which small changes may occur.
        • Migrate client/receiver/cpr API to NGSIv1 JSON. Probably, the best option by the time being from an stability and manteniability point of view. NGSIv1 JSON support will remain during a long time.
        • Keep using the last Orion version supporting XML (Orion 0.28.0). Old versions will remain available (either in RPM and code source form) so you can keep using it. However, note that doing this, you will be "stalled" at an old version and could be missing new and potentially useful functionality for your use case. Thus, this is recommend only as a temporal solution or for legacy systems that don't need any functional evolution.

        Note that this announce has been made 2 months in advance the first Orion version without XML get released, which should be fair enough time for users still using XML to take decision on migration/keep (and, in the former case, to schedule specific migration actions). Don't hesitate to contact me if you are in this case and have specific questions/doubts about it, e.g. how to migrate from XML to JSON specific API operations, etc.

        Best regards,

        ------
        Fermín

        Show
        fermin Fermín Galán added a comment - Hi, The motivation for removing XML from Orion API is due to the feedback gathered during years in many FIWARE events with developers (Campus Party, Developers week, FIWARE hackathons, etc.): it is a fact that developer community prefers JSON in REST API instead of XML. In fact, the next version of NGSIv2 will be entirely based on JSON. Note that although XML could be quite wide spread in many domains, modern REST APIs are based on JSON given the adventages it brings to developers generating/consuming that format (e.g. easiness in client languages such as JavaScript or Python). For example, GitHub API ( https://developer.github.com/v3/ ), JIRA ( https://developer.atlassian.com/jiradev/jira-apis/jira-rest-apis/jira-rest-api-tutorials/jira-rest-api-version-2-tutorial#JIRARESTAPIVersion2Tutorial-IntroductiontoJIRA%27sRESTAPI ) and many others. Thus, maintaining both XML and JSON at the same time in the current API is a severe burden in development and documentation tasks for the Orion team, without an actual gain. Therefore, we have decided to remove XML support from Orion Context Broker in the near future. The plan is that the version corresponding to February sprint (i.e. Orion 0.28.0) will be the last one supporting XML. JSON support (either NGSIv1 or NGSIv2) will remain. Although we stopped to talk about Orion XML API in public presentations, talks, etc. time ago (even before XML was "official" deprecated in 0.23.0) we understand that some old systems are still using XML. For these cases, there are 3 options: Migrate client/receiver/cpr API to NGSIv2 JSON. Probably the best option if you want to take the most of the newer NGSIv2 API (e.g. subscription filters, etc.). However, note that NGSIv2 is yet in "beta" status, with some areas not fully specified and others in which small changes may occur. Migrate client/receiver/cpr API to NGSIv1 JSON. Probably, the best option by the time being from an stability and manteniability point of view. NGSIv1 JSON support will remain during a long time. Keep using the last Orion version supporting XML (Orion 0.28.0). Old versions will remain available (either in RPM and code source form) so you can keep using it. However, note that doing this, you will be "stalled" at an old version and could be missing new and potentially useful functionality for your use case. Thus, this is recommend only as a temporal solution or for legacy systems that don't need any functional evolution. Note that this announce has been made 2 months in advance the first Orion version without XML get released, which should be fair enough time for users still using XML to take decision on migration/keep (and, in the former case, to schedule specific migration actions). Don't hesitate to contact me if you are in this case and have specific questions/doubts about it, e.g. how to migrate from XML to JSON specific API operations, etc. Best regards, ------ Fermín
        Hide
        fw.ext.user FW External User added a comment -

        Thanks. One more question.

        I use Java SAX XML parser for my system configuration files and that is why
        I opted for XML Orion messages. Is there any Java JSON library for parsing
        JSON streams that you would recommend.

        DD

        Show
        fw.ext.user FW External User added a comment - Thanks. One more question. I use Java SAX XML parser for my system configuration files and that is why I opted for XML Orion messages. Is there any Java JSON library for parsing JSON streams that you would recommend. DD
        Hide
        fermin Fermín Galán added a comment -

        Hi,

        There is a wide range of options for JSON in Java: http://json.org/ cite around 25 different libraries. Plenty of choices

        Considering a particular case, Cygnus https://github.com/telefonicaid/fiware-cygnus (an Orion connecto to persit context data in an historical way) uses json-simple to consume JSON notifications from Orion and simple string rendering to generate JSON (to interact with some JSON-based persistence system, such as CKAN).-

        Best regards,

        ------
        Fermín

        Show
        fermin Fermín Galán added a comment - Hi, There is a wide range of options for JSON in Java: http://json.org/ cite around 25 different libraries. Plenty of choices Considering a particular case, Cygnus https://github.com/telefonicaid/fiware-cygnus (an Orion connecto to persit context data in an historical way) uses json-simple to consume JSON notifications from Orion and simple string rendering to generate JSON (to interact with some JSON-based persistence system, such as CKAN).- Best regards, ------ Fermín

          People

          • Assignee:
            fermin Fermín Galán
            Reporter:
            fw.ext.user FW External User
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: