artanis
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Is There Any Means to Call an External Site/API from a Controller?


From: Nala Ginrut
Subject: Re: Is There Any Means to Call an External Site/API from a Controller?
Date: Thu, 29 Dec 2022 00:26:05 +0800
User-agent: mu4e 1.4.15; emacs 27.1

BTW, you don't have to generate application folder, just use Artanis
like a "tiny" library.

See this simple example:
https://gitlab.com/hardenedlinux/artanis/-/blob/master/examples/upload.scm

Best regards.


Nala Ginrut writes:

> Hi jgart!
> Yes I planned to write Artanis as a lightweight framework. But there's
> reason why it seems so heavy right now.
>
> The short story is that, I plan to provide a base framework, and other
> things should be plugins, say, DB, http client, json, session,
> authentication...so people may choose what to install as they need.
>
> However, when I had done most of the things, I realized that Scheme
> didn't have a good pkg manager. I prefer to integrate everything
> since I've been using Artanis to develop my product as well, and the
> integration is good for my practical purpose.
>
> After many years, I think Guix is a good pkg manager for that
> case now. Frankly, my original plan is to write a pkg manager for
> Artanis. But Guix is good enough now, and I don't think I have to wrtie
> a new one.
>
> So here's the final answer. I hope to keep only artanis-core, say,
> URL-remapping, app folder, server-core, configuration, pluggins
> mechanism. And put all other things as small plugin project. Of course,
> people may contribute their own, for example, authentication, and
> register it as a plugin.
>
> This will make Artanis more hackable, and we could organize a better
> community around Guix.
>
> The technical things can be done any time, but I need to spend much time
> for it. I plan to start this plan from the next year.
>
> What do you think?
>
> Best regards.
>
>
> jgart writes:
>
>> Nala,
>>
>> What do you think of having an offshoot of artanis that is more tiny 
>> likeningle:
>>
>> https://github.com/fukamachi/ningle
>>
>> My use case is that I don't need the project generation stuff, etc.
>>
>> jgart
>>
>> https://whereis.みんな/
>>
>> December 27, 2022 12:35 PM, "Nala Ginrut" <mulei@gnu.org> wrote:
>>
>>> Hi Jaft!
>>> First, it is recommended to use (artanis client).
>>> https://gitlab.com/hardenedlinux/artanis/-/blob/master/artanis/client.scm#L27
>>>
>>> artanis:http-get is based on guile-curl, I don't remember the last
>>> status of non-blocking with it, but if it's still blocking, I'll manage
>>> to handle the non-blocking in (artanis client) module.
>>>
>>> Best regards.
>>>
>>> Jaft writes:
>>>
>>>> I know this was discussed in the past but it's been a while since I've 
>>>> used Artanis and I was
>>>> wondering if anything was different?
>>>> The open-socket-for-uri and fcntl method, while avoiding the
>>>> Error: (wrong-type-arg #f Wrong type (expecting ~A): ~S (resumable 
>>>> continuation #<vm-continuation
>>>> 7f52391628e0>) (#<vm-continuation 7f52391628e0>))
>>>> Ingore it to avoid Ragnarok crash.
>>>> error, still causes the Artanis endpoint to hang and not move on to finish 
>>>> the controller call.
>>>> I just wanted to double check whether it was still not possible to 
>>>> callexternal HTTP(S) calls from
>>>> within a controller.
>>>
>>> --
>>> GNU Powered it
>>> GPL Protected it
>>> GOD Blessed it
>>> HFG - NalaGinrut
>>> Fingerprint F53B 4C56 95B5 E4D5 6093 4324 8469 6772 846A 0058


--
GNU Powered it
GPL Protected it
GOD Blessed it
HFG - NalaGinrut
Fingerprint F53B 4C56 95B5 E4D5 6093 4324 8469 6772 846A 0058

Attachment: signature.asc
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]