Adam
db4350a927
re-enable kafka processor
2022-07-02 08:54:38 +02:00
Adam
8c9d8e40c2
fix websocket connection
2022-07-02 08:54:02 +02:00
Adam
c0c82e7c9c
finish migrating to ktor!
...
- remove http4k
- renamed 'schema' subproject to 'library', because it contains more than just data models
- tiles are now hosted per factorio-server
- changed api base to `kafkatorio/data`
- tidied up some Gradle conf
- remove 'events-processor' subproject - I don't want to set up loads of microservices right now
2022-07-02 08:45:21 +02:00
Adam
8a90c4fb5e
- start migrating tile-server to use Ktor
...
- start splitting up Kafka processor and tile-server to two subprojects
2022-07-01 13:14:32 +02:00
Adam
ae0d95b4cb
remove old http4k application props
2022-06-28 20:44:36 +02:00
Adam
5f1187f9a8
rename: socketServerPortTcp -> socketServerPort
2022-06-27 22:09:48 +02:00
Adam
a2e8ab61d7
change default port to 8080 (works better with Traefik defaults)
2022-06-27 22:08:58 +02:00
Adam
fc758030fd
event-server tidy up (improve value class, rm unused class, rename websocket broadcaster)
2022-06-27 22:08:39 +02:00
Adam
e9a4ee4c48
set up syslog docker parser (remove need for Kafka Pipe script)
2022-06-27 22:07:42 +02:00
Adam
acbc15b6d4
map chunk grouping: reduce the amount of tiles generated (thanks to pixelated css), and reduce debounce duration
2022-06-26 15:31:54 +02:00
Adam
275fb27a29
Kafka Stream instance -> stop coroutine only when NOT_RUNNING
2022-06-26 14:59:09 +02:00
Adam
0398e2026d
project version bump to 0.6.0, and bump kotest, tstl, typescript
2022-06-19 10:54:37 +02:00
Adam
2f921179c4
events server config file
2022-06-19 10:35:47 +02:00
Adam
0c6f2a4bfe
refactor websocket/tile server
2022-06-19 10:24:06 +02:00
Adam
8c37a0cef9
trigger tile png reload in browser by sending 'saved tile' events over websocket
...
- create new EventServerPacket for websocket packet data
- move common models to events-schema
2022-05-25 12:50:34 +02:00
Adam
610d559f79
tile server: reduce logging, try no-cache for everything
2022-05-18 19:38:04 +02:00
Adam
0f08eee56f
update SaveMapChunksTest after tiles refactor
2022-05-15 13:10:14 +02:00
Adam
e2781e7bf2
make some saveTiles code private
2022-05-15 13:09:37 +02:00
Adam
6eb99a841c
close input stream with .use { }
2022-05-15 13:09:12 +02:00
Adam
645a016434
tidy up grouping, colouring, saving map chunks
2022-05-15 00:00:21 +02:00
Adam
28505c1040
rm unused code comment
2022-05-14 18:00:17 +02:00
Adam
775fd4c5b3
remove Supervisor jobs, allow exceptions to stop the whole application
2022-05-14 12:55:33 +02:00
Adam
7c77083c89
handle etags in WebMapTileServer
2022-05-14 12:51:27 +02:00
Adam
f0590b9df4
mad wicked sick tile grouping optimisations
2022-05-14 12:50:13 +02:00
Adam
008c25233d
coroutine based file watcher (supposed to be used for etag stuff, but it's a bit janky)
2022-05-14 12:25:10 +02:00
Adam
688b2c7bcb
- add tile deconstruction (concrete tiles can be removed)
...
- add @SerialName to all packets
- start implementing Entity prototype
- start implementing Entity updates
- clean up some old commented out code
- refactor how debounced events track the triggering events (now include timestamps per event)
- bump tstl
2022-05-07 20:29:24 +02:00
Adam
afe6a16287
tidy up topology
2022-05-02 23:35:19 +02:00
Adam
df197463eb
remove unused SuppressProcessor.java
2022-05-02 23:34:59 +02:00
Adam
ee3c7956cd
events-server: fix tile grouping, chunking, saving
...
- debounce chunk and tile updates
- make the tile output-dir configurable
- basic test for manual checking
2022-05-01 15:50:44 +02:00
Adam
fb265e39a6
event-server: try sharing a job, so server shuts down at the same time
2022-05-01 15:45:23 +02:00
Adam
e5bfc29697
simplify DebounceProcessor - use for-loop and schedule instead of coroutines
2022-05-01 09:46:53 +02:00
Adam
e05db4398a
re-implement tile saver, without Coroutines or debouncing. It seems to work well.
2022-04-24 19:00:10 +02:00
Adam
041d570aed
re-implement debounce processor... and then realise it's difficult to integrate with Kafka Streams DSL so don't use it
2022-04-24 18:55:18 +02:00
Adam
12df3b80be
visual test for map chunk grouper
2022-04-24 11:32:56 +02:00
Adam
ee62f9646e
Kafka Streams working again?
2022-04-24 11:32:15 +02:00
Adam
0d81650400
save topology description to disk
2022-04-23 21:56:43 +02:00
Adam
fea0d5bb97
one more group map chunks test
2022-04-23 17:59:52 +02:00
Adam
b81e62e2fd
enable gradle build cache, and improve tasks
2022-04-23 17:59:37 +02:00
Adam
f339333f76
change Kafka admin id warehouse->kafkatorio
2022-04-20 23:17:50 +02:00
Adam
2a3b0de953
more tests for grouping map chunks
2022-04-20 22:58:06 +02:00
Adam
2287582880
tidy up code
2022-04-20 17:54:54 +02:00
Adam
b0a6151c36
move from schema2 to schema
2022-04-20 17:18:09 +02:00
Adam
6bfcd30558
use tuples for colours
2022-04-20 17:14:00 +02:00
Adam
1c55fae236
tidying up schema files
2022-04-20 17:03:23 +02:00
Adam
d1353eec60
fix broken tests
2022-04-20 12:58:04 +02:00
Adam
8bf393f9c3
start tidying up after schema->schema2 migration
2022-04-20 11:28:30 +02:00
Adam
3fff57d46d
biggest refactor ever...
...
- use kxs-ts-gen for TypeScript schemas
- update schema files, so they're tidier (no need for typescript-generator workarounds)
- version bumps (kotlin, gradle, tstl, factorio, kotest)
- improve kxs binary format (use okio)
- move schema files package ('events' wasn't needed)
- tidy up topic creation, naming. base it off classes, make util functions
2022-04-20 10:17:41 +02:00
Adam
9e55a33882
disable max.task.idle.ms setting (I don't know what it's supposed to do, and setting it high causes OOM)
2022-03-14 22:21:17 +01:00
Adam
f1d15085e6
reduce log output when saving tiles
2022-03-14 22:20:39 +01:00
Adam
057eee6a68
- remove coroutines (most packets will only have one group, so it doesn't help much)
...
- don't materialize to named stores (unneeded)
2022-03-14 00:00:04 +01:00