I have gotten into a design problem and I thought I would ask you for advice.
I am currently indexing information from different services by polling their apis. And out of that data I am constructing a tailored model for use in my own service.
The problem I have gotten into is how my IDs should look like. The services provide an ID for each element in their collections(which is good), but on my end I dont think I want to use the external id as the identifier on my documents. What if two services has duplicate ids? How should I handle this? I am thinking of just adding a single character to the ids(this is a problem because I want the ids to be numeric), taken from the name of the polled service? Or should I just create unique ids of my own?
I am using ElasticSearch as datastore.
Thanks,
James Ford