Backend implementation

As previously described the logic run by the gateway relies on two classes, which when generated for us get called GeoIPRuntime and GeoRuntimeFactory. To keep these classes purely focused on the runtime processes rather than reading and transforming the file data into usable data structures several additional classes have been added, these are:

  • DataFilter: This class is exposed to the runtime layer and provides the services that the execution of the GeoIP runtime will need. By abstracting away from the runtime, we can if necessary rework the way the GeoIP data is used. For example, replacing the processing of files with a local database.
  • LocationDescriptor: This handles the location side of the data, breaking up a ...

Get Implementing Oracle API Platform Cloud Service now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.