Skip to content

Commit a5718fc

Browse files
committed
Changed from first person to second person where more appropriate
1 parent 95d3c49 commit a5718fc

20 files changed

+63
-62
lines changed

_posts/2021-03-10-spt-development-cid.markdown

+3-3
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ categories: microservices correlation
77
redirect_from:
88
- /microservices/correlation/2021/03/10/spt-devlopment-cid.html
99
---
10-
This is the first in a series of blog posts that go into detail about a number of [open source](/opensource) projects I have released, starting with [spt-development-cid](https://github.com/spt-development/spt-development-cid). `spt-development-cid` is a very simple library that utilises `ThreadLocal` for tracking a correlation ID similar to that described by Sam Newman, in Chapter 8 of his excellent book [Building Microservices](https://www.amazon.co.uk/Building-Microservices-Sam-Newman/dp/1491950358){:target="_blank"}. If you have ever tried to support a system consisting of multiple services that *doesn't* use correlation IDs, then you will understand their importance! Sam's book describes the concept better than I would, so I urge you to read that if you require a deeper understanding.
10+
This is the first in a series of blog posts that go into detail about a number of [open source](/opensource) projects we have released, starting with [spt-development-cid](https://github.com/spt-development/spt-development-cid). `spt-development-cid` is a very simple library that utilises `ThreadLocal` for tracking a correlation ID similar to that described by Sam Newman, in Chapter 8 of his excellent book [Building Microservices](https://www.amazon.co.uk/Building-Microservices-Sam-Newman/dp/1491950358){:target="_blank"}. If you have ever tried to support a system consisting of multiple services that *doesn't* use correlation IDs, then you will understand their importance! Sam's book describes the concept better than I would, so I urge you to read that if you require a deeper understanding.
1111
{: class="lead"}
1212

13-
The code in this library is not complicated and nothing that the average reader wouldn't be able to write themselves, however it is code that I have ended up copy/pasting on multiple projects and serves as the initial building block for the other projects I have open sourced.
13+
The code in this library is not complicated and nothing that the average reader wouldn't be able to write themselves, however it is code that we have ended up copy/pasting on multiple projects and serves as the initial building block for the other projects we have open sourced.
1414

1515
The project is available in [Maven Central](https://mvnrepository.com/artifact/com.spt-development/spt-development-cid), so to use, add it as a dependency to your project,
1616

@@ -20,4 +20,4 @@ Then inititialise with the `set` method and call `get` to include the correlatio
2020

2121
{% gist 7bfcd2c16ea135706731e68df25c9217 %}
2222

23-
You are most likely to call `CorrelationId.set()` when you receive a new REST API request or process a new JMS message, as such I have open sourced projects for integrating `spt-development-cid` into a [web project](https://github.com/spt-development/spt-development-cid-web) and a [Spring JMS (listener)](https://github.com/spt-development/spt-development-cid-jms-spring) project.
23+
You are most likely to call `CorrelationId.set()` when you receive a new REST API request or process a new JMS message, as such we have open sourced projects for integrating `spt-development-cid` into a [web project](https://github.com/spt-development/spt-development-cid-web) and a [Spring JMS (listener)](https://github.com/spt-development/spt-development-cid-jms-spring) project.

_posts/2021-09-10-spt-development-release.markdown

+4-4
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ date: 2021-09-10 19:55:12 +0000
55
author: Simon Taylor
66
categories: microservices correlation spring opensource
77
---
8-
I'm pleased to announced that I have now released new and up to date versions of all of the spt-development-* projects related to correlation IDs, logging and
9-
auditing. The main change to all of the projects is to support JDK8+ and Spring Boot 2.5.4. I will endeavor to release new versions of the libraries, soon after
8+
I'm pleased to announced that we have now released new and up to date versions of all of the spt-development-* projects related to correlation IDs, logging and
9+
auditing. The main change to all of the projects is to support JDK8+ and Spring Boot 2.5.4. We will endeavor to release new versions of the libraries, soon after
1010
each new release of Spring Boot, moving forward. As always, the source is available on [GitHub](https://github.com/spt-development) where there are more detailed
1111
release notes and the artifacts are also available in [Maven Central](https://mvnrepository.com/artifact/com.spt-development) for easy inclusion in your own
1212
<em>Java</em> projects.
@@ -25,9 +25,9 @@ The following projects have all been updated to v2.0.0:
2525
* [spt-development-audit-spring-boot](https://github.com/spt-development/spt-development-audit-spring-boot)
2626
* [spt-development-test](https://github.com/spt-development/spt-development-test)
2727

28-
I have also created a new [demo project](https://github.com/spt-development/spt-development-demo) that demonstrates how to easily integrate all of the
28+
We have also created a new [demo project](https://github.com/spt-development/spt-development-demo) that demonstrates how to easily integrate all of the
2929
spt-development-* projects into a Spring Boot application and the features they provide. I hope to blog in more detail on this in the coming weeks and months.
3030

3131
---
3232

33-
I hope this helps the community, and if there are any questions or comments, don't hesitate to get in touch.
33+
We hope this helps the community, and if there are any questions or comments, don't hesitate to get in touch.

_posts/2021-09-23-spt-development-release.markdown

+3-3
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ date: 2021-09-23 22:29:59 +0000
55
author: Simon Taylor
66
categories: microservices correlation spring opensource
77
---
8-
I'm pleased to announced that I have now released new versions of the spt-development-* projects related to correlation IDs, logging and auditing,
8+
I'm pleased to announced that we have now released new versions of the spt-development-* projects related to correlation IDs, logging and auditing,
99
which aligns them with the recently released [Spring Boot 2.5.5](https://spring.io/blog/2021/09/23/spring-boot-2-5-5-available-now). As always,
1010
the source is available on [GitHub](https://github.com/spt-development) and the artifacts are also available in
1111
[Maven Central](https://mvnrepository.com/artifact/com.spt-development) for easy inclusion in your own <em>Java</em> projects.
@@ -23,9 +23,9 @@ The following projects have all been updated to v2.0.1:
2323
* [spt-development-audit-spring-boot](https://github.com/spt-development/spt-development-audit-spring-boot)
2424
* [spt-development-test](https://github.com/spt-development/spt-development-test)
2525

26-
I have also upgraded the [demo project](https://github.com/spt-development/spt-development-demo) to Spring Boot 2.5.5 and v2.0.1 of all the libraries above.
26+
We have also upgraded the [demo project](https://github.com/spt-development/spt-development-demo) to Spring Boot 2.5.5 and v2.0.1 of all the libraries above.
2727
Additionally, as Spring Boot 2.5.5 adds support for JDK 17, the demo project has also been upgraded to JDK 17.
2828

2929
---
3030

31-
I hope this helps the community, and if there are any questions or comments, don't hesitate to get in touch.
31+
We hope this helps the community, and if there are any questions or comments, don't hesitate to get in touch.

_posts/2021-10-03-spt-development-audit-spring.markdown

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ See the [README](https://github.com/spt-development/spt-development-demo/blob/ma
1919

2020
## Auditing
2121

22-
There are many reasons why you might want to add auditing to your application. The main reason I wanted to add auditing to [SPT Contractors](https://spt.contractors/) was to be able to trace through how records reached a particular state; having this information has been invaluable on past projects for replaying when things go wrong and answering user queries when records are in a state they don't expect. I wanted an auditing solution that was simple to implement without polluting my business logic with calls to persist the audit records. Additionally, I wanted another service to be responsible for persisting the audit records which could potentially be extended to perform analysis or transformations at a later date. Out of these requirements `spt-development-audit-spring` was born.
22+
There are many reasons why you might want to add auditing to your application. The main reason we wanted to add auditing to [SPT Contractors](https://spt.contractors/) was to be able to trace through how records reached a particular state; having this information has been invaluable on past projects for replaying when things go wrong and answering user queries when records are in a state they don't expect. We wanted an auditing solution that was simple to implement without polluting my business logic with calls to persist the audit records. Additionally, we wanted another service to be responsible for persisting the audit records which could potentially be extended to perform analysis or transformations at a later date. Out of these requirements `spt-development-audit-spring` was born.
2323

2424
## spt-development-audit-spring
2525

@@ -47,7 +47,7 @@ Multiple parameters can be annotated with `@Audited.Detail` but if you do, the `
4747

4848
{% gist 99f18eb85d52dc9acdab8ed87dc6d35c %}
4949

50-
The `spt-development-audit-spring-boot-starter` configures the `Slf4jAuditEventWriter` bean by default, which is an instance of the `AuditEventWriter` interface. In a production service you probably want your adit event records persisted to some kind of database, in which case you will need to create a bean that is an instance of `AuditEventWriter` or if your service methods are transactional, an instance of `TransactionAwareAuditEventWriter` so that the audit events are only written if the transaction is successfully committed. For SPT Contractors, I developed a separate service responsible for persisting the audit event records read from a JMS queue and would recommend this approach in general. Creating a `JmsTemplate` bean and setting the `spt.audit.jms.destination` property results in the `spt-development-audit-spring-boot-starter` instantiating a `JmsAuditEventWriter` bean which writes the audit event records to the configured JMS queue, rather than to the logs with `Slf4jAuditEventWriter`. The demo project uses an in-memory Artemis JMS queue to demonstrate this.
50+
The `spt-development-audit-spring-boot-starter` configures the `Slf4jAuditEventWriter` bean by default, which is an instance of the `AuditEventWriter` interface. In a production service you probably want your adit event records persisted to some kind of database, in which case you will need to create a bean that is an instance of `AuditEventWriter` or if your service methods are transactional, an instance of `TransactionAwareAuditEventWriter` so that the audit events are only written if the transaction is successfully committed. For SPT Contractors, we developed a separate service responsible for persisting the audit event records read from a JMS queue and would recommend this approach in general. Creating a `JmsTemplate` bean and setting the `spt.audit.jms.destination` property results in the `spt-development-audit-spring-boot-starter` instantiating a `JmsAuditEventWriter` bean which writes the audit event records to the configured JMS queue, rather than to the logs with `Slf4jAuditEventWriter`. The demo project uses an in-memory Artemis JMS queue to demonstrate this.
5151

5252
## Actuator audit events
5353

_posts/2021-10-22-spt-development-release.markdown

+3-3
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ date: 2021-10-22 17:29:59 +0000
55
author: Simon Taylor
66
categories: microservices correlation spring opensource
77
---
8-
I'm pleased to announced that I have now released new versions of the spt-development-* projects related to correlation IDs, logging and auditing,
8+
I'm pleased to announced that we have now released new versions of the spt-development-* projects related to correlation IDs, logging and auditing,
99
which aligns them with the recently released [Spring Boot 2.5.6](https://spring.io/blog/2021/10/21/spring-boot-2-5-6-is-now-available). As always,
1010
the source is available on [GitHub](https://github.com/spt-development) and the artifacts are also available in
1111
[Maven Central](https://mvnrepository.com/artifact/com.spt-development) for easy inclusion in your own <em>Java</em> projects.
@@ -22,8 +22,8 @@ The following projects have all been updated to v2.0.2:
2222
* [spt-development-audit-spring-boot](https://github.com/spt-development/spt-development-audit-spring-boot)
2323
* [spt-development-test](https://github.com/spt-development/spt-development-test)
2424

25-
I have also upgraded the [demo project](https://github.com/spt-development/spt-development-demo) to Spring Boot 2.5.6 and v2.0.2 of all the libraries above.
25+
We have also upgraded the [demo project](https://github.com/spt-development/spt-development-demo) to Spring Boot 2.5.6 and v2.0.2 of all the libraries above.
2626

2727
---
2828

29-
I hope this helps the community, and if there are any questions or comments, don't hesitate to get in touch.
29+
We hope this helps the community, and if there are any questions or comments, don't hesitate to get in touch.

_posts/2022-04-11-spt-development-release.markdown

+7-7
Original file line numberDiff line numberDiff line change
@@ -7,22 +7,22 @@ categories: microservices correlation spring opensource travis
77
---
88
TLDR; The versions 2.0.1 to 2.0.11 of spt-development-cid are identical to 2.0.0 and therefore there is no pressing need to upgrade.
99

10-
In an effort to stream line the release process of the spt-development-cid (and ultimately the other related projects) I managed to
11-
burn through 11 patch release numbers, without actually making any code changes. I have therefore removed all but the
10+
In an effort to stream line the release process of the spt-development-cid (and ultimately the other related projects) we managed to
11+
burn through 11 patch release numbers, without actually making any code changes. We have therefore removed all but the
1212
[2.0.11 release](https://github.com/spt-development/spt-development-cid/releases/tag/2.0.11) from Github and would also remove them
13-
from [Maven Central](https://mvnrepository.com/artifact/com.spt-development/spt-development-cid) if I were able to.
13+
from [Maven Central](https://mvnrepository.com/artifact/com.spt-development/spt-development-cid) if we were able to.
1414

1515
Just to reiterate, there is nothing wrong with versions 2.0.1 to 2.0.11 other than they contain no changes when compared to version 2.0.0.
1616
{: class="lead"}
1717

1818
## Automated Release
1919

20-
Below is a summary of some of the problems I ran into whilst trying to automate the release process with
21-
[Travis CI](https://www.travis-ci.com) and the solutions I found.
20+
Below is a summary of some of the problems we ran into whilst trying to automate the release process with
21+
[Travis CI](https://www.travis-ci.com) and the solutions we found.
2222

2323
### `maven-release-plugin` requires full clone of repository
2424

25-
`mvn release:prepare release:perform -B` will update the versions and kick off the Maven `deploy` phase - I already had
25+
`mvn release:prepare release:perform -B` will update the versions and kick off the Maven `deploy` phase - we already had
2626
the relevant plugins configured to deploy to sonatype with `mvn deploy -Prelease`. Out of the box, Travis performs
2727
a shallow clone of the current branch, it was therefore necessary to switch off the default checkout and issue the
2828
clone and checkout commands manually.
@@ -62,7 +62,7 @@ The Travis [Github releases provider](https://docs.travis-ci.com/user/deployment
6262
however it is tightly coupled to tagging a particular version of the code. In order to prevent an infinite loop of
6363
releases all of the `maven-release-plugin` checkins include the `[skip travis]` comment, which stops Travis from
6464
running the build for those checkins - including the 'tag build'. To resolve this, rather than specifying on `tags: true`
65-
I have specified `branch: main` so the releases provider runs when there is a checkin on the main
65+
we have specified `branch: main` so the releases provider runs when there is a checkin on the main
6666
branch (after the `maven-release-plugin` has run and tagged the build). For this to work, the `TRAVIS_TAG` environment
6767
variable needs to be set.
6868

_posts/2022-05-02-spt-development-release.markdown

+3-3
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ date: 2022-05-02 16:00:59 +0000
55
author: Simon Taylor
66
categories: microservices correlation spring opensource
77
---
8-
I'm pleased to announced that I have now released new versions of the spt-development-* projects related to correlation IDs, logging and auditing,
8+
I'm pleased to announced that we have now released new versions of the spt-development-* projects related to correlation IDs, logging and auditing,
99
which aligns them with the recently released [Spring Boot 2.6.6](https://spring.io/blog/2022/03/31/spring-boot-2-6-6-available-now). As always,
1010
the source is available on [GitHub](https://github.com/spt-development) and the artifacts are also available in
1111
[Maven Central](https://mvnrepository.com/artifact/com.spt-development) for easy inclusion in your own <em>Java</em> projects.
@@ -24,8 +24,8 @@ which as been updated to v2.0.2:
2424
* [spt-development-audit-spring-boot](https://github.com/spt-development/spt-development-audit-spring-boot)
2525
* [spt-development-test](https://github.com/spt-development/spt-development-test)
2626

27-
I have also upgraded the [demo project](https://github.com/spt-development/spt-development-demo) to Spring Boot 2.6.6 and v2.0.3 of all the libraries above.
27+
We have also upgraded the [demo project](https://github.com/spt-development/spt-development-demo) to Spring Boot 2.6.6 and v2.0.3 of all the libraries above.
2828

2929
---
3030

31-
I hope this helps the community, and if there are any questions or comments, don't hesitate to get in touch.
31+
We hope this helps the community, and if there are any questions or comments, don't hesitate to get in touch.

_posts/2022-05-03-spt-development-release.markdown

+3-3
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ date: 2022-05-03 09:00:00 +0000
55
author: Simon Taylor
66
categories: microservices correlation spring opensource
77
---
8-
I'm pleased to announced that I have now released new versions of the spt-development-* projects related to correlation IDs, logging and auditing,
8+
I'm pleased to announced that we have now released new versions of the spt-development-* projects related to correlation IDs, logging and auditing,
99
which aligns them with the recently released [Spring Boot 2.6.7](https://spring.io/blog/2022/04/21/spring-boot-2-6-7-available-now). As always,
1010
the source is available on [GitHub](https://github.com/spt-development) and the artifacts are also available in
1111
[Maven Central](https://mvnrepository.com/artifact/com.spt-development) for easy inclusion in your own <em>Java</em> projects.
@@ -24,8 +24,8 @@ which as been updated to v2.0.3:
2424
* [spt-development-audit-spring-boot](https://github.com/spt-development/spt-development-audit-spring-boot)
2525
* [spt-development-test](https://github.com/spt-development/spt-development-test)
2626

27-
I have also upgraded the [demo project](https://github.com/spt-development/spt-development-demo) to Spring Boot 2.6.7 and v2.0.4 of all the libraries above.
27+
We have also upgraded the [demo project](https://github.com/spt-development/spt-development-demo) to Spring Boot 2.6.7 and v2.0.4 of all the libraries above.
2828

2929
---
3030

31-
I hope this helps the community, and if there are any questions or comments, don't hesitate to get in touch.
31+
We hope this helps the community, and if there are any questions or comments, don't hesitate to get in touch.

0 commit comments

Comments
 (0)