https://kotlinlang.org logo
Docs
Join the conversationJoin Slack
Channels
100daysofcode
100daysofkotlin
100daysofkotlin-2021
advent-of-code
aem
ai
alexa
algeria
algolialibraries
amsterdam
android
android-architecture
android-databinding
android-studio
androidgithubprojects
androidthings
androidx
androidx-xprocessing
anime
anko
announcements
apollo-kotlin
appintro
arabic
argentina
arkenv
arksemdevteam
armenia
arrow
arrow-contributors
arrow-meta
ass
atlanta
atm17
atrium
austin
australia
austria
awesome-kotlin
ballast
bangladesh
barcelona
bayarea
bazel
beepiz-libraries
belgium
berlin
big-data
books
boston
brazil
brikk
budapest
build
build-tools
bulgaria
bydgoszcz
cambodia
canada
carrat
carrat-dev
carrat-feed
chicago
chile
china
chucker
cincinnati-user-group
cli
clikt
cloudfoundry
cn
cobalt
code-coverage
codeforces
codemash-precompiler
codereview
codingame
codingconventions
coimbatore
collaborations
colombia
colorado
communities
competitive-programming
competitivecoding
compiler
compose
compose-android
compose-desktop
compose-hiring
compose-ios
compose-mp
compose-ui-showcase
compose-wear
compose-web
connect-audit-events
corda
cork
coroutines
couchbase
coursera
croatia
cryptography
cscenter-course-2016
cucumber-bdd
cyprus
czech
dagger
data2viz
databinding
datascience
dckotlin
debugging
decompose
decouple
denmark
deprecated
detekt
detekt-hint
dev-core
dfw
docs-revamped
dokka
domain-driven-design
doodle
dsl
dublin
dutch
eap
eclipse
ecuador
edinburgh
education
effective-kotlin
effectivekotlin
emacs
embedded-kotlin
estatik
event21-community-content
events
exposed
failgood
fb-internal-demo
feed
firebase
flow
fluid-libraries
forkhandles
forum
fosdem
fp-in-kotlin
framework-elide
freenode
french
fritz2
fuchsia
functional
funktionale
gamedev
ge-kotlin
general-advice
georgia
geospatial
german-lang
getting-started
github-workflows-kt
glance
godot-kotlin
google-io
gradle
graphic
graphkool
graphql
graphql-kotlin
graviton-browser
greece
grpc
gsoc
gui
hackathons
hacktoberfest
hamburg
hamkrest
helios
helsinki
hexagon
hibernate
hikari-cp
hire-me
hiring
hongkong
hoplite
http4k
hungary
hyderabad
image-processing
india
indonesia
inkremental
intellij
intellij-plugins
intellij-tricks
internships
introduce-yourself
io
ios
iran
israel
istanbulcoders
italian
jackson-kotlin
jadx
japanese
jasync-sql
java-to-kotlin-refactoring
javadevelopers
javafx
javalin
javascript
jdbi
jhipster-kotlin
jobsworldwide
jpa
jshdq
juul-libraries
jvm-ir-backend-feedback
jxadapter
k2-early-adopters
kaal
kafka
kakao
kalasim
kapt
karachi
karg
karlsruhe
kash_shell
kaskade
kbuild
kdbc
kgen-doc-tools
kgraphql
kinta
klaxon
klock
kloudformation
kmdc
kmm-español
kmongo
knbt
knote
koalaql
koans
kobalt
kobweb
kodein
kodex
kohesive
koin
koin-dev
komapper
kondor-json
kong
kontent
kontributors
korau
korean
korge
korim
korio
korlibs
korte
kotest
kotest-contributors
kotless
kotlick
kotlin-asia
kotlin-beam
kotlin-by-example
kotlin-csv
kotlin-data-storage
kotlin-foundation
kotlin-fuel
kotlin-in-action
kotlin-inject
kotlin-latam
kotlin-logging
kotlin-multiplatform-contest
kotlin-mumbai
kotlin-native
kotlin-pakistan
kotlin-plugin
kotlin-pune
kotlin-roadmap
kotlin-samples
kotlin-sap
kotlin-serbia
kotlin-spark
kotlin-szeged
kotlin-website
kotlinacademy
kotlinbot
kotlinconf
kotlindl
kotlinforbeginners
kotlingforbeginners
kotlinlondon
kotlinmad
kotlinprogrammers
kotlinsu
kotlintest
kotlintest-devs
kotlintlv
kotlinultimatechallenge
kotlinx-datetime
kotlinx-files
kotlinx-html
kotrix
kotson
kovenant
kprompt
kraph
krawler
kroto-plus
ksp
ktcc
ktfmt
ktlint
ktor
ktp
kubed
kug-leads
kug-torino
kvision
kweb
lambdaworld_cadiz
lanark
language-evolution
language-proposals
latvia
leakcanary
leedskotlinusergroup
lets-have-fun
libgdx
libkgd
library-development
linkeddata
lithuania
london
losangeles
lottie
love
lychee
macedonia
machinelearningbawas
madrid
malaysia
mathematics
meetkotlin
memes
meta
metro-detroit
mexico
miami
micronaut
minnesota
minutest
mirror
mockk
moko
moldova
monsterpuzzle
montreal
moonbean
morocco
motionlayout
mpapt
mu
multiplatform
mumbai
munich
mvikotlin
mvrx
myndocs-oauth2-server
naming
navigation-architecture-component
nepal
new-mexico
new-zealand
newname
nigeria
nodejs
norway
npm-publish
nyc
oceania
ohio-kotlin-users
oldenburg
oolong
opensource
orbit-mvi
osgi
otpisani
package-search
pakistan
panamá
pattern-matching
pbandk
pdx
peru
philippines
phoenix
pinoy
pocketgitclient
polish
popkorn
portugal
practical-functional-programming
proguard
prozis-android-backup
pyhsikal
python
python-contributors
quasar
random
re
react
reaktive
realm
realworldkotlin
reductor
reduks
redux
redux-kotlin
refactoring-to-kotlin
reflect
refreshversions
reports
result
rethink
revolver
rhein-main
rocksdb
romania
room
rpi-pico
rsocket
russian
russian_feed
russian-kotlinasfirst
rx
rxjava
san-diego
science
scotland
scrcast
scrimage
script
scripting
seattle
serialization
server
sg-user-group
singapore
skia-wasm-interop-temp
skrape-it
slovak
snake
sofl-user-group
southafrica
spacemacs
spain
spanish
speaking
spek
spin
splitties
spotify-mobius
spring
spring-security
squarelibraries
stackoverflow
stacks
stayhungrystayfoolish
stdlib
stlouis
strife-discord-lib
strikt
students
stuttgart
sudan
swagger-gradle-codegen
swarm
sweden
swing
swiss-user-group
switzerland
talking-kotlin
tallinn
tampa
teamcity
tegal
tempe
tensorflow
terminal
test
testing
testtestest
texas
tgbotapi
thailand
tornadofx
touchlab-tools
training
tricity-kotlin-user-group
trójmiasto
truth
tunisia
turkey
turkiye
twitter-feed
uae
udacityindia
uk
ukrainian
uniflow
unkonf
uruguay
utah
uuid
vancouver
vankotlin
vertx
videos
vienna
vietnam
vim
vkug
vuejs
web-mpp
webassembly
webrtc
wimix_sentry
wwdc
zircon
Powered by Linen
kotless
  • c

    Christian Schwoerer

    12/18/2020, 11:57 AM
    Hi everyone, I have a question concerning JSON de-/serialisation with the Kotless DSL: I have an easy example that multiplies two values. Therefore I want to extract a POST body like this:
    {
      "value1": 20,
      "value2": 3.33
    }
    The result should look like this:
    {
      "result": 66.6
    }
    Am I doing this right?
    @Post("/multiply")
    fun multiply(): String {
        val objectMapper = createObjectMapper()
        val requestBody = KotlessContext.HTTP.request.body?.let { String(it, UTF_8) }
        val request = objectMapper.readValue(requestBody, Request::class.java)
        val result = request.value1 * request.value2
        return objectMapper.writeValueAsString(Response(result))
    }
    data class Request(
        val value1: BigDecimal,
        val value2: BigDecimal
    )
    
    data class Response(
        val result: BigDecimal
    )
    
    private fun createObjectMapper() = ObjectMapper().findAndRegisterModules().setSerializationInclusion(NON_NULL)
    Is this the only way to extract the body and create a JSON response? Or ist there anything more convenient like
    @RequestBody
    or to create the JSON response?
    t
    h
    • 3
    • 8
  • c

    Christian Schwoerer

    01/18/2021, 7:22 PM
    Hi folks, as we’re still in the evaluation process of Kotless I just wondered how “future-proof” the framework is. It looks really promising, however the last release was already 6 months ago. No pressure from our side, I’m just curious if it’s still relevant and will be developed and updated in the future. Many thanks! 🙂
    t
    b
    • 3
    • 4
  • m

    miguelmoreno

    01/31/2021, 9:25 PM
    Hello! Any plans on adding support for “Amazon RDS” (relational database)? Thank you 😊
    t
    • 2
    • 5
  • t

    TanVD

    02/01/2021, 12:29 PM
    BTW, I have released 0.1.7-beta-5 with support of Kotlin 1.4.21. BUT, it requires Gradle 6.8.1+
    :kotlin-intensifies: 4
    a
    • 2
    • 4
  • m

    Márton Tóth

    02/08/2021, 6:43 PM
    Hey @TanVD, could you please take a quick look at this? https://github.com/JetBrains/kotless/pull/95
    t
    • 2
    • 1
  • g

    Gary

    02/11/2021, 5:38 AM
    Hi I just deployed the spring example url shortener @TanVD - but the CSS and JS are 404'ing The lambda is deployed at: https://x.amazonaws.com/STAGE The html/js looks for it at the root i.e. https://x.amazonaws.com/css/shortener.css But the actual API Gateway mappings are at: https://x.amazonaws.com/STAGE/css/shortener.css The only thing I removed is this
    webapp {
            route53 = Route53("spring.short", "<http://kotless.io|kotless.io>")
        }
    Wondering if this is expected behaviour or am I doing something wrong? Or is the sample broken? It works fine locally.
    t
    • 2
    • 5
  • h

    Hunter Kelly

    02/17/2021, 2:32 PM
    Hi there I tried to deploy the kotless shortner example, but the CSS and JS are giving 403 Forbidden errors (this is slightly different from the above question, which was spring and 404). I also commented out the route53 stanza. I’ve tried a few different things, in terms of access on the bucket, using a new bucket with open permissions, etc, but nothing has worked so far. It makes testing things hard since the JS for the button doesn’t work…
    t
    • 2
    • 15
  • h

    Hunter Kelly

    03/03/2021, 2:07 PM
    Hi there, I’m trying to pass a json object into a post request, my function looks like this:
    @Post("/createItems")
    fun createItems(info: ItemInfo): HttpResponse {
        ItemStorage.createItems(info)
        return HttpResponse(201, MimeType.JSON, "")
    }
    
    data class ItemInfo(
        val name: String,
        val count: Int,
        val details: String,
    )
    But when I make the following call, I get an error that the parameter is missing:
    POST /1/createItems HTTP/1.1
    Accept: application/json, */*;q=0.5
    
    {
        "info": {
            "count": 10,
            "details": "test1 details",
            "name": "test1"
        }
    }
    Response is:
    HTTP/1.1 500 Internal Server Error
    Connection: keep-alive
    Content-Length: 35
    Content-Type: text/plain
    Date: Wed, 03 Mar 2021 13:56:42 GMT
    
    Required argument 'info' is missing
    t
    c
    • 3
    • 5
  • c

    Christian Schwoerer

    03/12/2021, 10:41 AM
    Hi there, we’re having problems with the generated terraform file. And have no clue what we have to change, perhaps someone here has a hint. The Gradle error when running e.g.
    plan
    is:
    Error: Invalid resource name
    
      on <http://breakeven.tf|breakeven.tf> line 77, in resource "aws_iam_role" "0":
      77: resource "aws_iam_role" "0" {
    
    A name must start with a letter or underscore and may contain only letters,
    digits, underscores, and dashes.
    The corresponding part of the terraform script looks like this:
    resource "aws_iam_role" "0" {
      name = "0"
      assume_role_policy = data.aws_iam_policy_document.0_assume.json
    }
    The part of the
    build.gradle.kts
    like this:
    kotless {
        config {
            bucket = "our-bucket-name"
    
            terraform {
                profile = "my-aws-user"
                region = "eu-central-1"
            }
        }
        webapp {
            lambda {
                kotless {
                    packages = setOf("info.novatec")
                }
            }
        }
    }
    We’ve tried different Kotless versions (0.1.6, 0.1.7-beta-4, 0.1.7-beta-5). Anyone an idea what we’re doing wrong?
    t
    • 2
    • 9
  • a

    Abhishek Bansal

    03/19/2021, 6:41 PM
    Hello I have been trying to compile a simple
    hello world
    Ktor
    app with kotless plugin and Kotlin gradle DSL but keep hitting following error at gradle sync step
    > Failed to notify project evaluation listener.
       > Could not initialize class io.kotless.parser.KotlessDescriptor
    Here is gradle script that I have written
    import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
    import io.kotless.plugin.gradle.dsl.kotless
    import io.kotless.resource.Lambda.Config.*
    
    plugins {
        kotlin("jvm") version "1.4.21"
        id ("tanvd.kosogor") version "1.0.10"
        id("io.kotless") version "0.1.7-beta-5" apply true
    }
    
    buildscript {
        repositories {
            mavenCentral()
            gradlePluginPortal()
            jcenter()
        }
    
        dependencies {
            classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:1.4.21")
            classpath("io.kotless:gradle:0.1.7-beta-5")
        }
    }
    
    tasks.withType<KotlinCompile> {
        kotlinOptions {
            jvmTarget = "1.8"
            languageVersion = "1.4"
            apiVersion = "1.4"
        }
    }
    
    repositories {
        mavenCentral()
        gradlePluginPortal()
        jcenter()
    }
    
    group = "dev.abhishekbansal"
    version = "1.0"
    
    
    dependencies {
        implementation("io.kotless", "ktor-lang", "0.1.7-beta-5")
    }
    Here is link to full project https://github.com/abhishekBansal/hello-world-ktor-aws-lambda Any pointers here?
    t
    • 2
    • 6
  • a

    Abhishek Bansal

    03/21/2021, 5:22 AM
    [SOLVED] If I have existing Ktor application do I still need to wrap application code in a
    Kotless
    child class like this
    class Server : Kotless() {}
    ? I only want to run my application locally and without DynamoDB emulation.
    • 1
    • 1
  • a

    Abhishek Bansal

    04/17/2021, 1:19 PM
    [Solved] What is the best way to manage different deployment environments in Kotless? Like
    staging
    ,
    production
    etc? One way that I can think of right now is to do this
    profile = System.getEnv("ENV_PROFILE")
    and so on instead of hardcoding them. And how can I set some of the environment variables on lambda. Like for instance if I am writing a service which calls some other service but that other service URL depends on an environment variable. Is that kind of configuration supported?
    • 1
    • 1
  • a

    Abhishek Bansal

    04/25/2021, 2:48 PM
    Is there a way to skip API Gateway configuration in kotless and just create the lambda?
    t
    • 2
    • 1
  • a

    Alexandre Brown

    05/09/2021, 4:26 AM
    Hello, I am trying to deploy a hello world application to AWS with GraalVM but I get this error :
    Unable to find method ''boolean com.google.common.base.Platform.stringIsNullOrEmpty(java.lang.String)''
    'boolean com.google.common.base.Platform.stringIsNullOrEmpty(java.lang.String)'
    
    Gradle's dependency cache may be corrupt (this sometimes occurs after a network connection timeout.)
    
    Re-download dependencies and sync project (requires network)
    The state of a Gradle build process (daemon) may be corrupt. Stopping all Gradle daemons may solve this problem.
    
    Stop Gradle build processes (requires restart)
    Your project may be using a third-party plugin which is not compatible with the other plugins in the project or the version of Gradle requested by the project.
    
    In the case of corrupt Gradle processes, you can also try closing the IDE and then killing all Java processes.
    I deleted my gradle cache and it didn't solve the issue. My first intuition would be to believe I am missing something in my
    reflection.json
    but I am not sure. I can build the project, I can deploy locally, I cannot deploy to AWS. Versions : • JVM : 1.4.21 • Gradle : 7.0 • JVM Target: 11 • Kotless: 0.1.7-beta-5 • DSL: ktor-lang 0.1.7-beta-5 Here is the repo : https://github.com/AlexandreBrown/KotlessSetup Any help is appreciated
    t
    • 2
    • 3
  • s

    Sean Abbott

    06/02/2021, 2:20 PM
    Hiya! I'm trying to see if kotless will work for us; I have a simple hello world running locally just fine, but whenever I try to generate, I get
    Execution failed for task ':serverless:generate'.
    > 'org.jetbrains.kotlin.analyzer.AnalysisResult org.jetbrains.kotlin.cli.jvm.compiler.TopDownAnalyzerFacadeForJVM.analyzeFilesWithJavaIntegration$default(org.jetbrains.kotlin.com.intellij.openapi.project.Project, java.util.Collection, org.jetbrains.kotlin.resolve.BindingTrace, org.jetbrains.kotlin.config.CompilerConfiguration, kotlin.jvm.functions.Function1, kotlin.jvm.functions.Function2, org.jetbrains.kotlin.com.intellij.psi.search.GlobalSearchScope, int, java.lang.Object)'
    I have no idea where to go looking for how to troubleshoot this. Any suggestions?
    t
    • 2
    • 5
  • a

    Ajay Puli

    06/22/2021, 3:18 PM
    Heyy I'm trying run my kotless project after adding the AWS dependency (similar to github example repo) But It is showing this error
    Execution failed for task ':local'.
    > Could not resolve all files for configuration ':runtimeClasspath'.
       > Could not find io.kotless:kotless-lang-aws:0.1.7-beta-5.
         Searched in the following locations:
           - <https://dl.google.com/dl/android/maven2/io/kotless/kotless-lang-aws/0.1.7-beta-5/kotless-lang-aws-0.1.7-beta-5.pom>
           - <https://repo.maven.apache.org/maven2/io/kotless/kotless-lang-aws/0.1.7-beta-5/kotless-lang-aws-0.1.7-beta-5.pom>
           - <https://jcenter.bintray.com/io/kotless/kotless-lang-aws/0.1.7-beta-5/kotless-lang-aws-0.1.7-beta-5.pom>
           - <https://maven.springframework.org/release/io/kotless/kotless-lang-aws/0.1.7-beta-5/kotless-lang-aws-0.1.7-beta-5.pom>
           - <https://maven.restlet.com/io/kotless/kotless-lang-aws/0.1.7-beta-5/kotless-lang-aws-0.1.7-beta-5.pom>
           - file:/Users/puliajay/Documents/kotlin_backend/Sample_Kotless/lib/kotless-lang-aws-0.1.7-beta-5.jar
           - file:/Users/puliajay/Documents/kotlin_backend/Sample_Kotless/lib/kotless-lang-aws.jar
           - file:/Users/puliajay/Documents/kotlin_backend/Sample_Kotless/lib1/kotless-lang-aws-0.1.7-beta-5.jar
           - file:/Users/puliajay/Documents/kotlin_backend/Sample_Kotless/lib1/kotless-lang-aws.jar
           - file:/Users/puliajay/Documents/kotlin_backend/Sample_Kotless/lib2/kotless-lang-aws-0.1.7-beta-5.jar
           - file:/Users/puliajay/Documents/kotlin_backend/Sample_Kotless/lib2/kotless-lang-aws.jar
         Required by:
             project :
    Please tell me how to resolve this error.
    t
    • 2
    • 2
  • v

    v79

    08/09/2021, 7:05 PM
    Does
    kotless
    have a relationship to
    ktor
    ?
    b
    • 2
    • 2
  • v

    v79

    08/10/2021, 7:30 PM
    I'm struggling with a "Hello world" example with kotless 0.1.7-beta-5, kotlin 1.4.21 - I can run locally, but the
    deploy
    or
    plan
    tasks fail with the error:
    Execution failed for task ':initialize'.
    > Command failed: 'D:\Development\Experiments\Kotless\KotlessTestBeta\build\kotless-bin\terraform  '
    
    * Try:
    Run with --info or --debug option to get more log output. Run with --scan to get full insights.
    
    * Exception is:
    org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':initialize'.
    	at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.lambda$executeIfValid$1(ExecuteActionsTaskExecuter.java:188)
    	at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter$$Lambda$481/0x0000000000000000.accept(Unknown Source)
    In my build folder there is no folder called
    kotless-bin\terraform
    .
    t
    • 2
    • 8
  • n

    nordiauwu

    08/11/2021, 4:06 PM
    Hey guys, what is the status of kotless? Is it abandoned or something?
    :plus-one: 3
    g
    t
    • 3
    • 7
  • v

    v79

    08/19/2021, 9:32 PM
    Hi, using Kotless + Ktor I've just added my first route with a route parameter -
    get("/load-markdown/{s3key}")
    - this is working fine locally, but when I try to deploy to AWS, terraform blows up with an Invalid resource name message:
    Error: Invalid resource name
    
      on <http://KotlessTestBeta.tf|KotlessTestBeta.tf> line 79, in resource "aws_api_gateway_integration" "load_markdown_{s3key}_get":
      79: resource "aws_api_gateway_integration" "load_markdown_{s3key}_get" {
    
    A name must start with a letter or underscore and may contain only letters,
    digits, underscores, and dashes.
    What horrible thing have I done wrong? (Kotless 0.2.0 compiled from source).
    t
    • 2
    • 7
  • r

    Ronny Bräunlich

    11/16/2021, 6:25 PM
    Hi everyone, I would like to help developing kotless. Is there a good issue to start with? The existing ones hardly have any tags assigned, so there is no "good for starters" issue. Any advice?
    t
    • 2
    • 5
  • á

    Álvaro Blázquez Checa

    12/22/2021, 4:39 PM
    Hi everyone. I am playing around with kotless. So far so good. And I am deploying my test project to aws. In order to do that I am trying to use an aws role with minimal permissions. In a real project could be problematic to use a role with full admin permissions.
    • 1
    • 5
  • s

    Suser

    12/29/2021, 3:45 AM
    hey guys, noob question, is there currently any support for something real-time like websockets in kotless?
    t
    • 2
    • 3
  • m

    miqbaldc

    01/05/2022, 11:32 AM
    Does it possible to runs #kotless with Kotlin 1.5.z using latest version #kotless? (even though it says required 1.3.z)
    t
    • 2
    • 3
  • h

    Hakon Grotte

    02/09/2022, 1:38 PM
    Has anyone managed to debug kotless' Gradle task "local" with IntelliJ breakpoints? I have attempted to run with jvmarg
    -agentlib:jdwp=transport=dt_socket,server=y,suspend=y,address=*:5005
    on jvm target 11, and subsequently my Remove JVM debug manages to connect, loggint the following message:
    Connected to the target VM, address: 'localhost:5005', transport: 'socket'
    . When I attempt to run my route endpoints IntelliJ does not stop on my breakpoints
    t
    • 2
    • 9
  • p

    PJ Walstrom

    02/10/2022, 6:17 PM
    Using kotless 0.2.0, kotlin 1.5.32, gradle 7.4 I get the following error. Any suggestions?
    $ ./gradlew deploy
    > Task :generate FAILED
    
    FAILURE: Build failed with an exception.
    
    * What went wrong:
    A problem was found with the configuration of task ':generate' (type 'KotlessGenerateTask').
      - In plugin 'io.kotless' type 'io.kotless.plugin.gradle.tasks.gen.KotlessGenerateTask' property 'myTargetVersion' doesn't have a configured value.
    t
    • 2
    • 2
  • e

    elect

    04/11/2022, 3:21 PM
    what's the status in terms of integration and support of Terraform in Kotless?
    t
    • 2
    • 1
  • v

    v79

    06/12/2022, 2:17 PM
    Has anyone found an alternative to Kotless for serverless development? I know of Osiris https://github.com/cjkent/osiris , but like Kotless it appears to be dead.
    d
    t
    • 3
    • 9
  • m

    Michal Fudala

    09/06/2022, 11:57 AM
    Hi @TanVD We are excited about Kotless at VirtusLab and would like to create a PoC of Kotless with Pulumi (replacing terraform under the hood). What do you think? Does this make sense? I tested Kotless some time ago and had multiple terraform-related problems. For example, mapping method names to terraform resource names was a bit buggy.
  • s

    Shawn Witte

    11/08/2022, 8:57 AM
    Hi, I'm not sure where to ask, so I'll ask here: I'm a mobile dev and I'm trying to figure out how to set up a backend for a personal project. I expect to only ever need to
    GET
    data from the backend and I'd like to update that data on deployments (so people can submit updates to a GitHub repo for ease of collaboration). Is this an ideal usecase for serverless? I had a solution in Ktor that was deploying to Heroku, but they got rid of their free tier and now that I'm poking around again, it looks like serverless might naturally align with my usecase a little better (but I'm not sure, since I have no real backend experience to use as a reference point).
    f
    • 2
    • 2
Powered by Linen
Title
s

Shawn Witte

11/08/2022, 8:57 AM
Hi, I'm not sure where to ask, so I'll ask here: I'm a mobile dev and I'm trying to figure out how to set up a backend for a personal project. I expect to only ever need to
GET
data from the backend and I'd like to update that data on deployments (so people can submit updates to a GitHub repo for ease of collaboration). Is this an ideal usecase for serverless? I had a solution in Ktor that was deploying to Heroku, but they got rid of their free tier and now that I'm poking around again, it looks like serverless might naturally align with my usecase a little better (but I'm not sure, since I have no real backend experience to use as a reference point).
f

Francisco Ripoli

11/08/2022, 10:32 AM
if the data is static, and you really just update it on deployments, maybe you could look into some static hosting
s

Shawn Witte

11/08/2022, 9:45 PM
Can I query statically hosted content to get subsets of the information? I'm currently hosting a CSV and parsing it locally, but I'd like to have something a little more robust.
View count: 6