Skip to content

Quick republishing includes previous PUT's #103

@mrollinsiv

Description

@mrollinsiv

When republishing articles in rapid succession (developing/breaking news stories) the stream from amphora-search appears to have reference to the previous PUT's as well as the current.

We store full body content in elastic for our feeds and use the stream to gather that data. The duplication is causing the stale data to be written to elastic.

If you wait (presumably for cache to clear) the only the latest publish commands are in the stream.

I've cleared out the rest of the stream but here is an example of the duplication I see in the stream:

[ { type: 'put',
    key: 'clay.radio.com/_components/paragraph/instances/cjzij3e4t000g3h5uz62ixqhr@published',
    value: '{"text":"P2","componentVariation":"paragraph"}' },
  { type: 'put',
    key: 'clay.radio.com/_components/paragraph/instances/cjzij3e4t000g3h5uz62ixqhr@published',
    value: '{"text":"P2 v2","componentVariation":"paragraph"}' } ]

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions