Project

Profile

Help

Story #3894

Updated by dkliban@redhat.com over 5 years ago

Problem: Lazy sync requires the plugin to create *Content, ContentArtifacts, and RemoteArtifact objects for every piece of content discovered at the remote. This kind of indexing is resource utilization prohibitive for repositories with millions of artifacts.  

 Solution: Make content indexing optional by enabling users to configure Distributions with a Remote. The When the content app would then do the following is not able to find an artifact to serve to the user: 

 1. Try to find an artifact by looking at the Publication associated with the Distribution. 
 2. If an Artifact is found, send the content of for in a distribution, it as a response. 
 3. If an Artifact is not found, should check if there is a Remote associated with the Distribution.  
 4. If a remote is not associated with the Distribution, return a 404. 
 5. If a remote is associated, Distribution and then try to find an Artifact by using RemoteArtifact 'url' field. 
 6. If an Artifact is found, return the content of the Artifact as the response. 
 7. If a RemoteArtifact is    found, but an Artifact is not found, use the streamer to get the Artifact from the Remote and stream it as a response.  



 Remote. 



Back