Konferencja 4 developers w Łodzi należy już do historii, ale jakże fajna to historia. Była ona też emocjonująca z uwagi na mój debiut na scenie. Jakie wnioski? Jakie prezentacje mnie zainspirowały? Czytaj dalej
The power coming from AWS Lambdas is clear when you think what and who can invoke it. You can run it obviously from AWS Console. But the real value of this solution is clear when you can use your exisiting microservice from the device or hitting some HTTP endpoint. The last time me using Android is when there was no Intellij and emulators were heavier than my PC could endure.
Czytaj dalej AWS Lambda part 4 – running from Android
Previously I wrote my first Lambda (part 1) and connected it to data store Dynamo DB (part 2). Today I am going to use default file system for AWS system – S3. Again using boto3 library is very handy.
To make it easy and treat DynamoDB as historical table only, I decided to make calculations based on the state written to file. To calculate current state of the wallet I am subtracting operation amount from the last total. And I will keep it in simple JSON on my bucket.
Reading from S3
Before I start to do the basic operations, let me mention that there are no folders on AWS file system, we have buckets here. These are basic containers for S3 files. Here is how we can easily read file from bucket using Pythonic Lambda.
Writing to S3
Writing is nothing simpler than using
boto3.resource again. Play with it on your AWS landing page.
Again we are to make all of our fun safe and clean. So before running you will need to set permissions for user running lambda to use this file system. Following policy
AmazonS3FullAccess is a silver bullet to all s3 operations.
Of course it is only tip of the iceberg, when it comes to S3 file system. It can accept any files, provides versioning and triggers, that can be leveraged to any processing I can imagine. But what about saving simple JSON file? Works.
The last time I was running bare Lambda function. It was fun, but no persistence was touched. Now if we are going to track real expenses we have to persist data somewhere. One of the solutions made for that is to use DynamoDB table.
When reading through the whole internet lately I encountered AWS hype. 2015 I remember there was my first contact with this Amazon services but I skipped that somehow and forgot about my account. Things changed when I learned that this portal allows you not only to host machines and real linux systems but Lambdas. The code is here, check my Github.
Elasticsearch ma oficjalny polski plugin. Stempel. Udało mi się go testować i sprawdzać. I choć polski analizator pozostawia trochę do życzenia to robi niezłą robotę. Przypadek użycia? Indeksujemy i wyszukujemy RSS feed z ofertami pracy ze znanego polskiego portalu.
A więc od początku. Wszystko zaczęło się od strony jvm-bloggers.com. Dostrzegłem że tak na prawdę pisanie blogów to coś co możesz osiągnąć. Ale czytanie też inspiruje! Problem tylko taki że na internecie dzieje się bardzo dużo. Ciężko to ogarnąć. Dlatego wymyśliłem sobie mały zbiór opinii i recenzji, które mają pomóc podjąć mi i Tobie decyzję czy zapoznać się z danym materiałem. Zainteresujmy się tym co na prawdę jest interesujące. Zobacz tutaj na 160znakow.pl
API for ES – why
So what is the goal? I want to have small app, that will allow greedy HR workers to explore Projects I took part in. I believe, one’s experience is the most important feature of future (IT) worker; school was long time ago, courses are OK but who knows who helped to accomplish them?
Czytaj dalej Flask can provide REST for RESTful Elasticsearch
I want to make life of job-changers and human-researchers easier. I want to make easily searchable projects view. I want to have it on Elasticsearch, cause I want to proof, you can easily do something small with it, so it’s not only for very BIG data projects.
I used to be regular business developer. Delphi, then Java. Recently working somewhere, where project was not veery interesting I came to the conclusion: I would like to bring a real business value here.
Then Elasticsearch came to my mind…