Skip to content

Add concept projects 16 to 18: batch writes, testing with a real database, virtual threads - #12

Merged
mama-samba-braima merged 2 commits into
mainfrom
concepts-16-18
Dec 2, 2026
Merged

mama-samba-braima merged 2 commits into
mainfrom
concepts-16-18

Conversation

@mama-samba-braima

Copy link
Copy Markdown
Contributor

Completes the planned junior/mid track (01 to 18), same broken-first format.

  • 16 Batch writes: 10,000 rows in 10,000 round trips; SEQUENCE instead of IDENTITY, reWriteBatchedInserts, ordered inserts, flush and clear, Persistable for assigned ids, JdbcTemplate batchUpdate and COPY.
  • 17 Testing with a real database: the student's H2/fake-based suite is green while 4 features are broken on Postgres; Testcontainers with Flyway, @DataJpaTest replacement rules on Boot 4, one container and one context, test isolation, stable ordering. Checks judge the student's suite by putting bugs back and requiring it to go red.
  • 18 Virtual threads: Tomcat's thread ceiling, one property to switch, the connection pool as the next bottleneck, Semaphore instead of pools, ThreadLocal at scale, pinning on Java 25 (synchronized no longer pins; class initialisation and native callbacks still do).

CI: caches ~/.m2/wrapper and retries the Maven download on Linux and Windows.

…base, virtual threads

Each has a broken start/ and a fixed solution/, the demo, inspect and check
launchers, and both task files. Adds them to the index and the CI list.
CI now caches the Maven distribution the wrapper downloads and retries that
download, so one failed fetch from Maven Central no longer fails a job.
@mama-samba-braima
mama-samba-braima merged commit fb0b89b into main Dec 2, 2026
20 checks passed
@mama-samba-braima
mama-samba-braima deleted the concepts-16-18 branch December 2, 2026 22:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant