garconzio's People
garconzio's Issues
Look into zio-zmx for monitoring and metrics
Refine ABBYY translation even more
ABBYY may return “translation” of form word := synonym
Should refine it to a translation of synonym
Investigate overwhelming Mongo logs
There is no life, just the void with such logs — so need to get rid of them
2020-05-29T00:28:38.184 [zio-default-async-1-700072760] INFO org.mongodb.driver.cluster - Cluster created with settings {hosts=[localhost:27019], mode=SINGLE, requiredClusterType=UNKNOWN, serverSelectionTimeout='30000 ms', maxWaitQueueSize=500}
2020-05-29T00:28:38.214 [cluster-ClusterId{value='5ed02d0600f52d2d6b853b6f', description='null'}-localhost:27019] INFO org.mongodb.driver.connection - Opened connection [connectionId{localValue:357, serverValue:7355}] to localhost:27019
2020-05-29T00:28:38.233 [cluster-ClusterId{value='5ed02d0600f52d2d6b853b6f', description='null'}-localhost:27019] INFO org.mongodb.driver.cluster - Monitor thread successfully connected to server with description ServerDescription{address=localhost:27019, type=STANDALONE, state=CONNECTED, ok=true, version=ServerVersion{versionList=[4, 0, 3]}, minWireVersion=0, maxWireVersion=7, maxDocumentSize=16777216, logicalSessionTimeoutMinutes=30, roundTripTimeNanos=19294706}
2020-05-29T00:28:38.234 [zio-default-async-1-700072760] INFO org.mongodb.driver.cluster - No server chosen by com.mongodb.async.client.ClientSessionHelper$1@3f57f51e from cluster description ClusterDescription{type=UNKNOWN, connectionMode=SINGLE, serverDescriptions=[ServerDescription{address=localhost:27019, type=UNKNOWN, state=CONNECTING}]}. Waiting for 30000 ms before timing out
2020-05-29T00:28:38.287 [Thread-5] INFO org.mongodb.driver.connection - Opened connection [connectionId{localValue:358, serverValue:7356}] to localhost:27019
2020-05-29T00:28:41.343 [zio-default-async-6-700072760] INFO org.mongodb.driver.cluster - Cluster created with settings {hosts=[localhost:27019], mode=SINGLE, requiredClusterType=UNKNOWN, serverSelectionTimeout='30000 ms', maxWaitQueueSize=500}
2020-05-29T00:28:41.361 [cluster-ClusterId{value='5ed02d0900f52d2d6b853b70', description='null'}-localhost:27019] INFO org.mongodb.driver.connection - Opened connection [connectionId{localValue:359, serverValue:7357}] to localhost:27019
2020-05-29T00:28:41.364 [cluster-ClusterId{value='5ed02d0900f52d2d6b853b70', description='null'}-localhost:27019] INFO org.mongodb.driver.cluster - Monitor thread successfully connected to server with description ServerDescription{address=localhost:27019, type=STANDALONE, state=CONNECTED, ok=true, version=ServerVersion{versionList=[4, 0, 3]}, minWireVersion=0, maxWireVersion=7, maxDocumentSize=16777216, logicalSessionTimeoutMinutes=30, roundTripTimeNanos=2460618}
2020-05-29T00:28:41.453 [Thread-4] INFO org.mongodb.driver.connection - Opened connection [connectionId{localValue:360, serverValue:7358}] to localhost:27019
2020-05-29T00:28:41.508 [zio-default-async-2-700072760] INFO org.mongodb.driver.cluster - Cluster created with settings {hosts=[localhost:27019], mode=SINGLE, requiredClusterType=UNKNOWN, serverSelectionTimeout='30000 ms', maxWaitQueueSize=500}
2020-05-29T00:28:41.517 [cluster-ClusterId{value='5ed02d0900f52d2d6b853b71', description='null'}-localhost:27019] INFO org.mongodb.driver.connection - Opened connection [connectionId{localValue:361, serverValue:7359}] to localhost:27019
2020-05-29T00:28:41.523 [cluster-ClusterId{value='5ed02d0900f52d2d6b853b71', description='null'}-localhost:27019] INFO org.mongodb.driver.cluster - Monitor thread successfully connected to server with description ServerDescription{address=localhost:27019, type=STANDALONE, state=CONNECTED, ok=true, version=ServerVersion{versionList=[4, 0, 3]}, minWireVersion=0, maxWireVersion=7, maxDocumentSize=16777216, logicalSessionTimeoutMinutes=30, roundTripTimeNanos=6030986}
2020-05-29T00:28:41.608 [Thread-6] INFO org.mongodb.driver.connection - Opened connection [connectionId{localValue:362, serverValue:7360}] to localhost:27019
Add more tests
To cover:
- Mocked/local Mongo for tests
- Unit test for every aspect of the logic of the bot
- Integration tests with Telegram, ABBYY, Yandex
Add a regular health-check to notify me when a container is down/slow/not feeling well
Setup backups to Amazon Glacier
Add usage statistics
Collect overall statistics for monitoring if free tier is enough and maybe collect some statistics per user
Rework testing process
For each testing phase some number of words should form a bucket where word's probability increases/decreases based on the user's guesses
Add timeouts for network calls
Not sure about database for now but translator APIs should definitely be able to timeout (for now default read timeout is set on sttp client level).
Overcome Telegram's limitation on inline button's length
Currently only 64 bytes are allowed per inline button — so need to store actual button data in DB and send only fixed-length ids to Telegram
Investigate why new connection is being created for each request since beadcb0f
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.