Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[DO NOT MERGE] Proof of concept for Content Store operating as publishing router #1306

Draft
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

ryanb-gds
Copy link

@ryanb-gds ryanb-gds commented Aug 5, 2024

I've been thinking about how we might simplify publishing documents from Whitehall, so that we aren't consistently experiencing distributed transaction failures between Whitehall (and other publishing apps) and GOV.UK frontend.

One way we could solve this problem is to serve the content directly from the Publishing application. This would solve our distributed transaction failures, but lead to other problems such as performance, authorisation and routing. I think the latter set of problems are probably easier to solve.

This proof of concept shows a rough way we could use content store as a proxy to Whitehall for news articles. In reality we would need to be very careful about how we deliver this, probably making use of the scientist gem to ensure performance is satisfactory. Caching could easily be done much closer to Whitehall though to the cache easier to invalidate than it is via Publishing API.

The nice thing about this is that it can be implemented content type by content type and doesn't require the introduction of any new services or technologies into our system.

Accompanying Whitehall PR: alphagov/whitehall#9345

dependabot bot and others added 5 commits September 4, 2024 15:17
Bumps [rspec-rails](https://github.com/rspec/rspec-rails) from 6.1.3 to 6.1.4.
- [Changelog](https://github.com/rspec/rspec-rails/blob/main/Changelog.md)
- [Commits](rspec/rspec-rails@v6.1.3...v6.1.4)

---
updated-dependencies:
- dependency-name: rspec-rails
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Bumps [rexml](https://github.com/ruby/rexml) from 3.3.3 to 3.3.6.
- [Release notes](https://github.com/ruby/rexml/releases)
- [Changelog](https://github.com/ruby/rexml/blob/master/NEWS.md)
- [Commits](ruby/rexml@v3.3.3...v3.3.6)

---
updated-dependencies:
- dependency-name: rexml
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>
Bumps [rails](https://github.com/rails/rails) from 7.2.0 to 7.2.1.
- [Release notes](https://github.com/rails/rails/releases)
- [Commits](rails/rails@v7.2.0...v7.2.1)

---
updated-dependencies:
- dependency-name: rails
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Bumps [gds-api-adapters](https://github.com/alphagov/gds-api-adapters) from 96.0.2 to 96.0.3.
- [Changelog](https://github.com/alphagov/gds-api-adapters/blob/main/CHANGELOG.md)
- [Commits](alphagov/gds-api-adapters@v96.0.2...v96.0.3)

---
updated-dependencies:
- dependency-name: gds-api-adapters
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant